X-Git-Url: https://git.distorted.org.uk/~mdw/tripe/blobdiff_plain/1a372224dde236370adb73fdcd8468d7def4bc28..d3731285e1e3638e7f4877c78ed9e27e1fd72233:/client/tripectl.c diff --git a/client/tripectl.c b/client/tripectl.c index ea86ec5c..438edf37 100644 --- a/client/tripectl.c +++ b/client/tripectl.c @@ -65,7 +65,6 @@ #include "util.h" #undef sun -#define IGNORE(x) do if (x); while (0) /*----- Data structures ---------------------------------------------------*/ @@ -520,6 +519,7 @@ int main(int argc, char *argv[]) die(EXIT_FAILURE, "fork failed: %s", strerror(errno)); if (!kid) { close(pfd[0]); close(efd[0]); + sigprocmask(SIG_SETMASK, &oldmask, 0); md[0].cur = pfd[1]; md[0].want = STDIN_FILENO; md[1].cur = pfd[1]; md[1].want = STDOUT_FILENO; md[2].cur = efd[1]; md[2].want = STDERR_FILENO;