Using PID 0 causes various problems. This makes genpid skip PID 0.
* proc/mgt.c (genpid): Start PIDs at 1.
---
proc/mgt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/proc/mgt.c b/proc/mgt.c
index c093b8f..d7ad296 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))
--
1.7.10.4
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive:
http://lists.debian.org/1379326826-6613-2-git-send-email-4win...@informatik.uni-hamburg.de