From 5777ee57e5c4edaae8cfbec21fdf195d79f3934e Mon Sep 17 00:00:00 2001 From: QC Date: Sun, 2 Aug 2015 15:56:52 +0200 Subject: [PATCH] Remove use of g_close, not available on travis --- source/helper.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)); + } } }