diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2009-03-20 22:17:13 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2009-03-20 22:17:13 +0000 |
commit | 83518d18a34a3ddfcaac1739930d8469f5bc2442 (patch) | |
tree | 2af665365a69f2689288cc13bb65efbb59e7d520 /miscutils/setsid.c | |
parent | 0b28103cc774eb1ee62362cf61d52c32d44ec2cf (diff) | |
download | busybox-w32-83518d18a34a3ddfcaac1739930d8469f5bc2442.tar.gz busybox-w32-83518d18a34a3ddfcaac1739930d8469f5bc2442.tar.bz2 busybox-w32-83518d18a34a3ddfcaac1739930d8469f5bc2442.zip |
Compatibility fixes:
grep: support -z
find: support --mindepth
together +45 bytes
cpio: support -p (configurable, +230 bytes)
libbb: tweaks for cpio
Diffstat (limited to 'miscutils/setsid.c')
-rw-r--r-- | miscutils/setsid.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/miscutils/setsid.c b/miscutils/setsid.c index 127adf6f2..d7de1f149 100644 --- a/miscutils/setsid.c +++ b/miscutils/setsid.c | |||
@@ -26,7 +26,8 @@ int setsid_main(int argc UNUSED_PARAM, char **argv) | |||
26 | * Otherwise our PID serves as PGID of some existing process group | 26 | * Otherwise our PID serves as PGID of some existing process group |
27 | * and cannot be used as PGID of a new process group. */ | 27 | * and cannot be used as PGID of a new process group. */ |
28 | if (getpgrp() == getpid()) | 28 | if (getpgrp() == getpid()) |
29 | forkexit_or_rexec(argv); | 29 | if (fork_or_rexec(argv)) |
30 | exit(EXIT_SUCCESS); /* parent */ | ||
30 | 31 | ||
31 | setsid(); /* no error possible */ | 32 | setsid(); /* no error possible */ |
32 | 33 | ||