Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e10664c
)
Call SIGACTION() instead of signal().
author
Wayne Davison
<wayned@samba.org>
Mon, 18 Dec 2006 07:24:24 +0000
(07:24 +0000)
committer
Wayne Davison
<wayned@samba.org>
Mon, 18 Dec 2006 07:24:24 +0000
(07:24 +0000)
support/savetransfer.c
patch
|
blob
|
blame
|
history
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);