Remove use of g_close, not available on travis

This commit is contained in:
QC 2015-08-02 15:56:52 +02:00
parent c97d2979e5
commit 5777ee57e5

View file

@ -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));
}
}
}