Commit 6ded1d6d authored by Marcus Nordenberg's avatar Marcus Nordenberg Committed by Esteban Blanc

rt_ini: Don't ignore SIGCHLD signal

(cherry picked from commit 383b6b5669d1f9f9ee200e5c26a2bccdda1c8c03)
parent da49cef0
......@@ -1698,9 +1698,6 @@ static void daemonize()
if (setsid() < 0)
exit(EXIT_FAILURE);
// Ignore any signals from children
signal(SIGCHLD, SIG_IGN);
// Second fork
pid = fork();
if (pid < 0)
......@@ -1720,4 +1717,5 @@ static void daemonize()
stdin = fopen("/dev/null", "r");
stdout = fopen("/dev/null", "w+");
stderr = fopen("/dev/null", "w+");
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment