Commit 3f500419 by Stéphane Graber

tests: Close all fds in startone

parent b099e9e9
...@@ -163,6 +163,7 @@ int main(int argc, char *argv[]) ...@@ -163,6 +163,7 @@ int main(int argc, char *argv[])
exit(1); exit(1);
} }
c->want_daemonize(c, false); c->want_daemonize(c, false);
c->want_close_all_fds(c, true);
pid_t pid = fork(); pid_t pid = fork();
if (pid < 0) { if (pid < 0) {
fprintf(stderr, "%d: fork failed\n", __LINE__); fprintf(stderr, "%d: fork failed\n", __LINE__);
......
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