diff --git a/src/support/ChangeLog b/src/support/ChangeLog index 6279bd1afd..462269bfc5 100644 --- a/src/support/ChangeLog +++ b/src/support/ChangeLog @@ -1,3 +1,10 @@ +2005-04-21 Angus Leeming + + * forkedcontr.C: add #include . + + * filetools.C (RunCommand): remove the signal blocking stuff + now that we no longer use a signal handler on unix. + 2005-04-19 Angus Leeming * filetools.C: remove unnecessary #include of forkedcontr.h. diff --git a/src/support/filetools.C b/src/support/filetools.C index 3cc0880f67..6bdc9336ab 100644 --- a/src/support/filetools.C +++ b/src/support/filetools.C @@ -43,9 +43,9 @@ #include #include +#include #include #include -#include #include #include @@ -1061,14 +1061,6 @@ cmd_ret const RunCommand(string const & cmd) // pstream (process stream), with the // variants ipstream, opstream - sigset_t newMask, oldMask; - sigemptyset(&oldMask); - sigemptyset(&newMask); - sigaddset(&newMask, SIGCHLD); - - // Block the SIGCHLD signal. - sigprocmask(SIG_BLOCK, &newMask, &oldMask); - FILE * inf = ::popen(cmd.c_str(), os::popen_read_mode()); // (Claus Hentschel) Check if popen was succesful ;-) @@ -1087,9 +1079,6 @@ cmd_ret const RunCommand(string const & cmd) if (pret == -1) perror("RunCommand:: could not terminate child process"); - // Unblock the SIGCHLD signal and restore the old mask. - sigprocmask(SIG_SETMASK, &oldMask, 0); - return make_pair(pret, ret); } diff --git a/src/support/forkedcontr.C b/src/support/forkedcontr.C index 0a16b76d05..3dd158c3b3 100644 --- a/src/support/forkedcontr.C +++ b/src/support/forkedcontr.C @@ -25,6 +25,7 @@ #else # include +# include # include # include # include