summaryrefslogtreecommitdiffstats
path: root/source/helper.c
diff options
context:
space:
mode:
authorQC <qball@gmpclient.org>2015-08-02 15:56:52 +0200
committerQC <qball@gmpclient.org>2015-08-02 15:56:52 +0200
commit5777ee57e5c4edaae8cfbec21fdf195d79f3934e (patch)
treebadd25bacaf2d5b13fc4c389fb07a0a5c49f9a06 /source/helper.c
parentc97d2979e55beafa0d22493598a71950d0040246 (diff)
Remove use of g_close, not available on travis
Diffstat (limited to 'source/helper.c')
-rw-r--r--source/helper.c4
1 files changed, 3 insertions, 1 deletions
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));
+ }
}
}