mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
(trunk libT) ensure that the last few log messages actually get logged before shutdown finishes.
This commit is contained in:
+7
-6
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user