- patch from Denis Vlasenko to add and use bb_xdaemon()
This commit is contained in:
parent
dac7ff15b7
commit
2c99851181
12 changed files with 33 additions and 22 deletions
|
@ -275,8 +275,7 @@ start_stop_daemon_main(int argc, char **argv)
|
|||
}
|
||||
*--argv = startas;
|
||||
if (opt & SSD_OPT_BACKGROUND) {
|
||||
if (daemon(0, 0) == -1)
|
||||
bb_perror_msg_and_die ("unable to fork");
|
||||
bb_xdaemon(0, 0);
|
||||
setsid();
|
||||
}
|
||||
if (opt & SSD_OPT_MAKEPID) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue