diff options
author | Russ Dill | 2004-05-19 07:46:23 +0000 |
---|---|---|
committer | Russ Dill | 2004-05-19 07:46:23 +0000 |
commit | 91e006c1adf660a0180b6d3988a14150ccb36fa9 (patch) | |
tree | 1a0688c266e49ea8b50b42bef36637d67bb9a8df /networking | |
parent | 57f49d318552b093def4ecd2287d02b30f6d238b (diff) | |
download | busybox-91e006c1adf660a0180b6d3988a14150ccb36fa9.zip busybox-91e006c1adf660a0180b6d3988a14150ccb36fa9.tar.gz |
remove uneccessary check (already done in pidfile.c)
Diffstat (limited to 'networking')
-rw-r--r-- | networking/udhcp/common.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/networking/udhcp/common.c b/networking/udhcp/common.c index ddfc547..4f856ee 100644 --- a/networking/udhcp/common.c +++ b/networking/udhcp/common.c @@ -60,13 +60,13 @@ void background(const char *pidfile) int pid_fd; /* hold lock during fork. */ - if (pidfile) pid_fd = pidfile_acquire(pidfile); + pid_fd = pidfile_acquire(pidfile); if (daemon(0, 0) == -1) { perror("fork"); exit(1); } daemonized++; - if (pidfile) pidfile_write_release(pid_fd); + pidfile_write_release(pid_fd); #endif /* __uClinux__ */ } @@ -96,10 +96,8 @@ void start_log_and_pid(const char *client_server, const char *pidfile) sanitize_fds(); /* do some other misc startup stuff while we are here to save bytes */ - if (pidfile) { - pid_fd = pidfile_acquire(pidfile); - pidfile_write_release(pid_fd); - } + pid_fd = pidfile_acquire(pidfile); + pidfile_write_release(pid_fd); /* equivelent of doing a fflush after every \n */ setlinebuf(stdout); |