Revert "start-stop-daemon: use vfork to avoid races"
This is broken, so revert it and reopen #532.
This reverts commit 9e5ce59a21
.
This commit is contained in:
parent
f60d42e901
commit
9b08de926b
@ -864,8 +864,8 @@ int main(int argc, char **argv)
|
|||||||
if (background)
|
if (background)
|
||||||
signal_setup(SIGCHLD, handle_signal);
|
signal_setup(SIGCHLD, handle_signal);
|
||||||
|
|
||||||
if ((pid = vfork()) == -1)
|
if ((pid = fork()) == -1)
|
||||||
eerrorx("%s: vfork: %s", applet, strerror(errno));
|
eerrorx("%s: fork: %s", applet, strerror(errno));
|
||||||
|
|
||||||
/* Child process - lets go! */
|
/* Child process - lets go! */
|
||||||
if (pid == 0) {
|
if (pid == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user