mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-05-18 20:06:07 -04:00
Call SIGACTION() instead of signal().
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user