|
|
|
@ -193,7 +193,7 @@ int main(int argc, char *argv[])
|
|
|
|
|
(void)setlocale(LC_ALL, "");
|
|
|
|
|
/* Set our name (for logging only) */
|
|
|
|
|
|
|
|
|
|
while( (c = getopt(argc, argv, "hf")) != EOF )
|
|
|
|
|
while( (c = getopt(argc, argv, "hf")) != (char)-1 )
|
|
|
|
|
{
|
|
|
|
|
switch( c ) {
|
|
|
|
|
case 'f':
|
|
|
|
@ -204,8 +204,9 @@ int main(int argc, char *argv[])
|
|
|
|
|
exit(0);
|
|
|
|
|
default:
|
|
|
|
|
usage();
|
|
|
|
|
exit(1);
|
|
|
|
|
exit(5);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if( conf_readconf(conf_getconfname(), 0) )
|
|
|
|
@ -216,7 +217,7 @@ int main(int argc, char *argv[])
|
|
|
|
|
if( log_open(log_getfilename(LOG_FILE_SESSION), NULL, NULL) )
|
|
|
|
|
{
|
|
|
|
|
log("can't continue without logging");
|
|
|
|
|
exit(1);
|
|
|
|
|
exit(2);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Ignore some terminating signals */
|
|
|
|
|