diff options
Diffstat (limited to 'proc/mgt.c')
-rw-r--r-- | proc/mgt.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -848,6 +848,12 @@ genpid () int wrapped = 0; + if (nextpid > wrap) + { + nextpid = START_OVER; + wrapped = 1; + } + while (!pidfree (nextpid)) { ++nextpid; |