Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Ensure that the sender turns off any msg_fd_in use earlier.
[rsync/rsync.git]
/
support
/
savetransfer.c
diff --git
a/support/savetransfer.c
b/support/savetransfer.c
index
8a74826
..
808a6f2
100644
(file)
--- a/
support/savetransfer.c
+++ b/
support/savetransfer.c
@@
-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);