Diff of /trunk/mkinitrd-magellan/busybox/miscutils/setsid.c
Parent Directory | Revision Log | Patch
revision 983 by niro, Fri Apr 24 18:33:46 2009 UTC | revision 984 by niro, Sun May 30 11:32:42 2010 UTC | |
---|---|---|
# | Line 26 int setsid_main(int argc UNUSED_PARAM, c | Line 26 int setsid_main(int argc UNUSED_PARAM, c |
26 | * Otherwise our PID serves as PGID of some existing process group | * Otherwise our PID serves as PGID of some existing process group |
27 | * and cannot be used as PGID of a new process group. */ | * and cannot be used as PGID of a new process group. */ |
28 | if (getpgrp() == getpid()) | if (getpgrp() == getpid()) |
29 | forkexit_or_rexec(argv); | if (fork_or_rexec(argv)) |
30 | exit(EXIT_SUCCESS); /* parent */ | |
31 | ||
32 | setsid(); /* no error possible */ | setsid(); /* no error possible */ |
33 |
|