aboutsummaryrefslogtreecommitdiff
path: root/libbb/vfork_daemon_rexec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/vfork_daemon_rexec.c')
-rw-r--r--libbb/vfork_daemon_rexec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libbb/vfork_daemon_rexec.c b/libbb/vfork_daemon_rexec.c
index 2fd70ba1a..0601121ad 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,
40 int fd; 40 int fd;
41 char **vfork_args; 41 char **vfork_args;
42 int a = 0; 42 int a = 0;
43 43
44 setsid(); 44 setsid();
45 45
46 if (!nochdir) 46 if (!nochdir)
47 chdir("/"); 47 chdir("/");
48 48
@@ -73,6 +73,6 @@ void vfork_daemon_rexec(int nochdir, int noclose,
73 bb_perror_msg_and_die("vfork"); 73 bb_perror_msg_and_die("vfork");
74 default: /* parent */ 74 default: /* parent */
75 exit(0); 75 exit(0);
76 } 76 }
77} 77}
78#endif /* uClinux */ 78#endif /* uClinux */