usr/stpgd: Fix the perf build

Reported-by: Rob Turk <robtu@rtist.nl>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8256 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2019-04-20 15:53:06 +00:00
parent 88d4bc5653
commit 3002ba7652

View File

@@ -46,12 +46,12 @@ char *app_name;
# endif
#endif /* DEBUG */
bool log_daemon = true;
unsigned long trace_flag = DEFAULT_LOG_FLAGS;
#endif /* defined(DEBUG) || defined(TRACING) */
#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
bool log_daemon = true;
int transition_timeout = DEFAULT_TRANSITION_TIME;
static struct option const long_options[] = {
@@ -519,8 +519,10 @@ int main(int argc, char **argv)
PRINT_INFO("trace_flag %lx", trace_flag);
#endif
if (log_daemon) {
#if defined(DEBUG) || defined(TRACING)
trace_flag &= ~TRACE_TIME;
trace_flag &= ~TRACE_PID;
#endif
pid = fork();
if (pid < 0) {