commit | a1fece2c70898a1180f0506df6695e3077510731 | [log] [tgz] |
---|---|---|
author | Russ Dill <Russ.Dill@asu.edu> | Mon Dec 15 21:57:44 2003 +0000 |
committer | Russ Dill <Russ.Dill@asu.edu> | Mon Dec 15 21:57:44 2003 +0000 |
tree | d18739994a984c3d35edb73c936f015e0dbde631 | |
parent | d4f7a5edadb7529e407a5367fbb8af4c866e2598 [diff] [blame] |
Get vfork_daemon_rexec working under uclinux
diff --git a/sysklogd/klogd.c b/sysklogd/klogd.c index c132e06..df3a668 100644 --- a/sysklogd/klogd.c +++ b/sysklogd/klogd.c
@@ -147,11 +147,12 @@ } if (doFork) { +#if defined(__uClinux__) + vfork_daemon_rexec(0, 1, argc, argv, "-n"); +#else /* __uClinux__ */ if (daemon(0, 1) < 0) bb_perror_msg_and_die("daemon"); -#if defined(__uClinux__) - vfork_daemon_rexec(argc, argv, "-n"); -#endif +#endif /* __uClinux__ */ } doKlogd(console_log_level);