mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-20 04:51:58 -04:00
Call SIGACTION() instead of signal().
This commit is contained in:
1 parent
e10664c5e8
commit
c96f6eb584
1 file changed
+5
-1
@@ -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