[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 27/36: proc: do not hand out PID 0
From: |
Samuel Thibault |
Subject: |
[hurd] 27/36: proc: do not hand out PID 0 |
Date: |
Tue, 24 Sep 2013 12:31:18 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch upstream
in repository hurd.
commit 6c277e6e677df4b92f7588513f34f745af5fce24
Author: Justus Winter <address@hidden>
Date: Mon Sep 16 12:20:25 2013 +0200
proc: do not hand out PID 0
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))
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] 35/36: Merge remote-tracking branch 'upstream/master' into upstream, (continued)
- [hurd] 35/36: Merge remote-tracking branch 'upstream/master' into upstream, Samuel Thibault, 2013/09/24
- [hurd] 34/36: Drop dead links, Samuel Thibault, 2013/09/24
- [hurd] 16/36: Fix gcc warning, Samuel Thibault, 2013/09/24
- [hurd] 32/36: Fix missing renames, Samuel Thibault, 2013/09/24
- [hurd] 29/36: Fix spurious port deallocation, Samuel Thibault, 2013/09/24
- [hurd] 30/36: Add --without-daemon option to configure, Samuel Thibault, 2013/09/24
- [hurd] 36/36: Merge branch 'upstream' of git.debian.org:/git/pkg-hurd/hurd into upstream, Samuel Thibault, 2013/09/24
- [hurd] 12/36: Fix test for term open mode, Samuel Thibault, 2013/09/24
- [hurd] 28/36: include: make /hurd/proc PID 3, Samuel Thibault, 2013/09/24
- [hurd] 26/36: Fix sscanf format for c99, Samuel Thibault, 2013/09/24
- [hurd] 27/36: proc: do not hand out PID 0,
Samuel Thibault <=
- [hurd] 33/36: Merge remote-tracking branch 'upstream/master' into upstream, Samuel Thibault, 2013/09/24
- [hurd] 21/36: Fix gcc warning, Samuel Thibault, 2013/09/24
- [hurd] 17/36: Fix test for block compression, Samuel Thibault, 2013/09/24
- [hurd] 23/36: Fix gcc warning, Samuel Thibault, 2013/09/24
- [hurd] 18/36: Fix gcc warning, Samuel Thibault, 2013/09/24
- [hurd] 24/36: Fix gcc warning, Samuel Thibault, 2013/09/24