mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-27 01:41:45 +02:00
common: add pidfd related methods
Add functions to open pidfds, i.e. file descriptors representing processes, for process ids and vice versa. Both functions work an array of fds/pids, stop on error and return the number of successfully handled items.
This commit is contained in:
@ -5,12 +5,14 @@ common_sources = [
|
||||
'common-external.c',
|
||||
'common-helpers.c',
|
||||
'common-gpu.c',
|
||||
'common-pidfds.c',
|
||||
]
|
||||
|
||||
daemon_common = static_library(
|
||||
'daemon-common',
|
||||
sources: common_sources,
|
||||
install: false,
|
||||
include_directories: [config_h_dir]
|
||||
)
|
||||
|
||||
link_daemon_common = declare_dependency(
|
||||
|
Reference in New Issue
Block a user