mirror of https://github.com/davatorium/rofi.git
Remove use of g_close, not available on travis
This commit is contained in:
parent
c97d2979e5
commit
5777ee57e5
|
@ -447,7 +447,9 @@ int create_pid_file ( const char *pidfile )
|
||||||
void remove_pid_file ( int fd )
|
void remove_pid_file ( int fd )
|
||||||
{
|
{
|
||||||
if ( fd >= 0 ) {
|
if ( fd >= 0 ) {
|
||||||
g_close ( fd, NULL );
|
if ( close ( fd ) ) {
|
||||||
|
fprintf(stderr, "Failed to close pidfile: '%s'\n", strerror(errno));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue