mirror of
https://github.com/transmission/transmission
synced 2024-12-24 08:43:27 +00:00
(trunk libT) ensure that the last few log messages actually get logged before shutdown finishes.
This commit is contained in:
parent
9d805527e3
commit
779f52069a
1 changed files with 7 additions and 6 deletions
|
@ -539,6 +539,13 @@ main( int argc, char ** argv )
|
|||
pumpLogMessages( logfile );
|
||||
}
|
||||
|
||||
printf( "Closing transmission session..." );
|
||||
tr_sessionSaveSettings( mySession, configDir, &settings );
|
||||
dtr_watchdir_free( watchdir );
|
||||
tr_sessionClose( mySession );
|
||||
pumpLogMessages( logfile );
|
||||
printf( " done.\n" );
|
||||
|
||||
/* shutdown */
|
||||
#if HAVE_SYSLOG
|
||||
if( !foreground )
|
||||
|
@ -548,12 +555,6 @@ main( int argc, char ** argv )
|
|||
}
|
||||
#endif
|
||||
|
||||
printf( "Closing transmission session..." );
|
||||
tr_sessionSaveSettings( mySession, configDir, &settings );
|
||||
dtr_watchdir_free( watchdir );
|
||||
tr_sessionClose( mySession );
|
||||
printf( " done.\n" );
|
||||
|
||||
/* cleanup */
|
||||
if( pidfile_created )
|
||||
remove( pid_filename );
|
||||
|
|
Loading…
Reference in a new issue