diff options
Diffstat (limited to 'libbb/vfork_daemon_rexec.c')
-rw-r--r-- | libbb/vfork_daemon_rexec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libbb/vfork_daemon_rexec.c b/libbb/vfork_daemon_rexec.c index 2fd70ba..0601121 100644 --- a/libbb/vfork_daemon_rexec.c +++ b/libbb/vfork_daemon_rexec.c @@ -40,9 +40,9 @@ void vfork_daemon_rexec(int nochdir, int noclose, int fd; char **vfork_args; int a = 0; - + setsid(); - + if (!nochdir) chdir("/"); @@ -73,6 +73,6 @@ void vfork_daemon_rexec(int nochdir, int noclose, bb_perror_msg_and_die("vfork"); default: /* parent */ exit(0); - } + } } #endif /* uClinux */ |