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 (from parent 1:
6c29af2
)
moved usage mesage after am_daemon test (I'd broken daemon mode)
author
Andrew Tridgell
<tridge@samba.org>
Sun, 17 May 1998 03:51:41 +0000
(
03:51
+0000)
committer
Andrew Tridgell
<tridge@samba.org>
Sun, 17 May 1998 03:51:41 +0000
(
03:51
+0000)
main.c
patch
|
blob
|
blame
|
history
diff --git
a/main.c
b/main.c
index
188cf41
..
d0b2541
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-494,11
+494,6
@@
int main(int argc,char *argv[])
argv += optind;
optind = 0;
argv += optind;
optind = 0;
- if (argc < 1) {
- usage(FERROR);
- exit(1);
- }
-
signal(SIGCHLD,SIG_IGN);
signal(SIGINT,SIGNAL_CAST sig_int);
signal(SIGPIPE,SIGNAL_CAST sig_int);
signal(SIGCHLD,SIG_IGN);
signal(SIGINT,SIGNAL_CAST sig_int);
signal(SIGPIPE,SIGNAL_CAST sig_int);
@@
-508,6
+503,11
@@
int main(int argc,char *argv[])
return daemon_main();
}
return daemon_main();
}
+ if (argc < 1) {
+ usage(FERROR);
+ exit(1);
+ }
+
if (dry_run)
verbose = MAX(verbose,1);
if (dry_run)
verbose = MAX(verbose,1);