aboutsummaryrefslogtreecommitdiff
path: root/proc/mgt.c
diff options
context:
space:
mode:
Diffstat (limited to 'proc/mgt.c')
-rw-r--r--proc/mgt.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/proc/mgt.c b/proc/mgt.c
index 5e28bfc0..1291a80b 100644
--- a/proc/mgt.c
+++ b/proc/mgt.c
@@ -848,6 +848,12 @@ genpid ()
int wrapped = 0;
+ if (nextpid > wrap)
+ {
+ nextpid = START_OVER;
+ wrapped = 1;
+ }
+
while (!pidfree (nextpid))
{
++nextpid;