diff --git a/source/helper.c b/source/helper.c index 061a510b..3e7db9ad 100644 --- a/source/helper.c +++ b/source/helper.c @@ -447,7 +447,9 @@ int create_pid_file ( const char *pidfile ) void remove_pid_file ( int fd ) { if ( fd >= 0 ) { - g_close ( fd, NULL ); + if ( close ( fd ) ) { + fprintf(stderr, "Failed to close pidfile: '%s'\n", strerror(errno)); + } } }