diff options
author | rsc <devnull@localhost> | 2005-01-16 17:37:11 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-01-16 17:37:11 +0000 |
commit | a0d2173ce4c9b9d530352f3890898ad3af19ae06 (patch) | |
tree | 75fa0cad8cb1ca95475a680202f42290534f4e33 /src/libthread | |
parent | 3300f9cd89202e417dee8f1799e88f955d75ac89 (diff) | |
download | plan9port-a0d2173ce4c9b9d530352f3890898ad3af19ae06.tar.gz plan9port-a0d2173ce4c9b9d530352f3890898ad3af19ae06.tar.bz2 plan9port-a0d2173ce4c9b9d530352f3890898ad3af19ae06.zip |
too big fd
Diffstat (limited to 'src/libthread')
-rw-r--r-- | src/libthread/daemonize.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libthread/daemonize.c b/src/libthread/daemonize.c index 7aa1494a..286df9c9 100644 --- a/src/libthread/daemonize.c +++ b/src/libthread/daemonize.c @@ -100,12 +100,13 @@ _threadsetupdaemonize(void) sysfatal("passer pipe: %r"); /* hide these somewhere they won't cause harm */ - if(dup(p[0], 98) < 0 || dup(p[1], 99) < 0) + /* can't go too high: NetBSD max is 64, for example */ + if(dup(p[0], 28) < 0 || dup(p[1], 29) < 0) sysfatal("passer pipe dup: %r"); close(p[0]); close(p[1]); - p[0] = 98; - p[1] = 99; + p[0] = 28; + p[1] = 29; /* close on exec */ if(fcntl(p[0], F_SETFD, 1) < 0 || fcntl(p[1], F_SETFD, 1) < 0) |