summaryrefslogtreecommitdiff
path: root/proc/mgt.c
diff options
context:
space:
mode:
Diffstat (limited to 'proc/mgt.c')
-rw-r--r--proc/mgt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proc/mgt.c b/proc/mgt.c
index c093b8fe..d7ad2961 100644
--- a/proc/mgt.c
+++ b/proc/mgt.c
@@ -862,7 +862,7 @@ genpid ()
{
#define WRAP_AROUND 30000
#define START_OVER 100
- static int nextpid = 0;
+ static int nextpid = 1;
static int wrap = WRAP_AROUND;
while (nextpid < wrap && !pidfree (nextpid))