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