mirror of
https://github.com/davatorium/rofi.git
synced 2025-07-31 21:59:25 -04: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…
Add table
Add a link
Reference in a new issue