replacing func() with xfunc() where appropriate

This commit is contained in:
Denis Vlasenko
2006-09-03 12:21:59 +00:00
parent 87d80dcc3e
commit 27af5a0dd3
6 changed files with 12 additions and 21 deletions

View File

@ -59,10 +59,7 @@ void udhcp_background(const char *pidfile)
/* hold lock during fork. */
pid_fd = pidfile_acquire(pidfile);
if (daemon(0, 0) == -1) { /* bb_xdaemon? */
perror("fork");
exit(1);
}
xdaemon(0, 0);
daemonized++;
pidfile_write_release(pid_fd);
#endif /* __uClinux__ */