mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-26 17:31:45 +02:00
helpers: add helpers to automatically close fds
Add a inline helper function and a helper macro to be able to automatically close file descriptors. Does nothing if the argument is NULL or the pointed to integer is < 0.
This commit is contained in:
@ -30,6 +30,7 @@ daemon_sources = [
|
||||
'daemonize.c',
|
||||
'dbus_messaging.c',
|
||||
'daemon_config.c',
|
||||
'helpers.c',
|
||||
]
|
||||
|
||||
gamemoded_includes = libgamemode_includes
|
||||
|
Reference in New Issue
Block a user