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:
34ccb63
)
fixed sighup handling
author
Andrew Tridgell
<tridge@samba.org>
Fri, 28 Jun 1996 14:26:15 +0000
(14:26 +0000)
committer
Andrew Tridgell
<tridge@samba.org>
Fri, 28 Jun 1996 14:26:15 +0000
(14:26 +0000)
main.c
patch
|
blob
|
blame
|
history
diff --git
a/main.c
b/main.c
index
92103fc
..
ceed01d
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-594,6
+594,11
@@
int main(int argc,char *argv[])
argv++;
}
+ signal(SIGCHLD,SIG_IGN);
+ signal(SIGINT,SIGNAL_CAST sig_int);
+ signal(SIGPIPE,SIGNAL_CAST sig_int);
+ signal(SIGHUP,SIGNAL_CAST sig_int);
+
if (dry_run)
verbose = MAX(verbose,1);
@@
-670,10
+675,6
@@
int main(int argc,char *argv[])
shell_path?shell_path:"");
}
- signal(SIGCHLD,SIG_IGN);
- signal(SIGINT,SIGNAL_CAST sig_int);
- signal(SIGPIPE,SIGNAL_CAST sig_int);
-
if (!sender && argc != 1) {
usage(stderr);
exit_cleanup(1);