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:
William Hubbs 2022-09-02 17:27:39 -05:00
parent f60d42e901
commit 9b08de926b

View File

@ -864,8 +864,8 @@ int main(int argc, char **argv)
if (background)
signal_setup(SIGCHLD, handle_signal);
if ((pid = vfork()) == -1)
eerrorx("%s: vfork: %s", applet, strerror(errno));
if ((pid = fork()) == -1)
eerrorx("%s: fork: %s", applet, strerror(errno));
/* Child process - lets go! */
if (pid == 0) {