diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/daemon/testd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/daemon/testd.c b/tests/daemon/testd.c index 14b7c7a..a1b4f06 100644 --- a/tests/daemon/testd.c +++ b/tests/daemon/testd.c @@ -201,7 +201,10 @@ int main( int argc, char *argv[] ) { wolf_log( WOLF_LOG_NOTICE, WOLF_CATEGORY_DAEMON, WOLF_MSG_DAEMON_STOPPED_DAEMON, _( "Stopped %s daemon" ), CMDLINE_PARSER_PACKAGE ); + wolf_log_closelogtofile( ); + if( !args_info.foreground_given ) { + wolf_log_closelogtosyslog( ); cmdline_parser_free( &args_info ); wolf_daemon_exit( demon ); } else { |