From bd4b0fe6ffe4ccb47cfd5f1d64de77594cb10374 Mon Sep 17 00:00:00 2001 From: Daniel Lee Date: Tue, 18 May 2010 22:25:14 +0000 Subject: [PATCH] (daemon) Log pidfile errors in daemon --- daemon/daemon.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/daemon/daemon.c b/daemon/daemon.c index ecfd809c2..7b5f81912 100644 --- a/daemon/daemon.c +++ b/daemon/daemon.c @@ -450,8 +450,11 @@ main( int argc, char ** argv ) { fprintf( fp, "%d", (int)getpid() ); fclose( fp ); + tr_inf( "Saved pidfile \"%s\"", pid_filename ); 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 )