1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 01:03:01 +00:00

(daemon) Log pidfile errors in daemon

This commit is contained in:
Daniel Lee 2010-05-18 22:25:14 +00:00
parent 0cc65eb152
commit bd4b0fe6ff

View file

@ -450,8 +450,11 @@ main( int argc, char ** argv )
{ {
fprintf( fp, "%d", (int)getpid() ); fprintf( fp, "%d", (int)getpid() );
fclose( fp ); fclose( fp );
tr_inf( "Saved pidfile \"%s\"", pid_filename );
pidfile_created = TRUE; pidfile_created = TRUE;
} }
else
tr_err( "Unable to save pidfile \"%s\": %s", pid_filename, strerror( errno ) );
} }
if( tr_bencDictFindBool( &settings, TR_PREFS_KEY_RPC_AUTH_REQUIRED, &boolVal ) && boolVal ) if( tr_bencDictFindBool( &settings, TR_PREFS_KEY_RPC_AUTH_REQUIRED, &boolVal ) && boolVal )