moved usage mesage after am_daemon test (I'd broken daemon mode)

This commit is contained in:
Andrew Tridgell committed 1998-05-17 03:51:41 +00:00
1 parent 6c29af2251
commit 08ac228fbd
1 file changed
+5 -5
+5 -5
View File
@@ -494,11 +494,6 @@ int main(int argc,char *argv[])
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);
@@ -508,6 +503,11 @@ int main(int argc,char *argv[])
return daemon_main();
}
if (argc < 1) {
usage(FERROR);
exit(1);
}
if (dry_run)
verbose = MAX(verbose,1);