mirror of
https://github.com/lbonn/rofi
synced 2024-11-15 16:38:00 +00:00
Remove use of g_close, not available on travis
This commit is contained in:
parent
c97d2979e5
commit
5777ee57e5
1 changed files with 3 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue