Fixed trace and debug logs not being created in shared memory.
This commit is contained in:
parent
0cc2c13d7e
commit
79c20bfae8
@ -1761,7 +1761,6 @@ static bool fnames_conf_init(
|
||||
|
||||
case 's':
|
||||
/** record list of log file ids for later use */
|
||||
if(do_syslog)
|
||||
shmem_id_str = optarg;
|
||||
break;
|
||||
case 'h':
|
||||
@ -1793,12 +1792,14 @@ static bool fnames_conf_init(
|
||||
strdup(get_logpath_default()) : fn->fn_logpath;
|
||||
|
||||
/** Set identity string for syslog if it is not set in config.*/
|
||||
if(do_syslog)
|
||||
{
|
||||
syslog_ident_str =
|
||||
(syslog_ident_str == NULL ?
|
||||
(argv == NULL ? strdup(program_invocation_short_name) :
|
||||
strdup(*argv)) :
|
||||
syslog_ident_str);
|
||||
|
||||
}
|
||||
/* ss_dfprintf(stderr, "\n\n\tCommand line : ");
|
||||
for (i=0; i<argc; i++) {
|
||||
ss_dfprintf(stderr, "%s ", argv[i]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user