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