Commit c96f6eb5 authored by Wayne Davison's avatar Wayne Davison

Call SIGACTION() instead of signal().

parent e10664c5
......@@ -27,6 +27,10 @@
#define TIMEOUT_SECONDS 30
#ifdef HAVE_SIGACTION
static struct sigaction sigact;
#endif
void run_program(char **command);
char buf[4096];
......@@ -64,7 +68,7 @@ main(int argc, char *argv[])
}
set_blocking(fd_file);
signal(SIGPIPE, SIG_IGN);
SIGACTION(SIGPIPE, SIG_IGN);
run_program(argv + 1);
......
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