From b5a007e6f2a760985c5944463b85f475a0b79567 Mon Sep 17 00:00:00 2001 From: Michael Larson Date: Mon, 19 Jul 2010 17:22:59 -0700 Subject: more cleanup to new help impl. --- src/cli_new.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/cli_new.c b/src/cli_new.c index 4884d9e..19aae1c 100644 --- a/src/cli_new.c +++ b/src/cli_new.c @@ -2427,18 +2427,9 @@ system_out(const char *cmd, const char **outbuf) return old_system_out(cmd); } - /* - struct sigaction sa; - sigaction(SIGCHLD, NULL, &sa); - sa.sa_flags |= SA_NOCLDWAIT;//(since POSIX.1-2001 and Linux 2.6 and later) - sigaction(SIGCHLD, &sa, NULL); - */ if (cmd == NULL) { return -1; } - //should detach child process at this point - umask(0); - setsid(); int cp[2]; // Child to parent pipe -- cgit v1.2.3