process-util: add helper get_process_threads()

Let's add a proper helper for querying the number of threads in a
process.
This commit is contained in:
Lennart Poettering
2023-02-17 14:27:58 +01:00
parent ceecf3d45d
commit 6aa90884a0
6 changed files with 86 additions and 9 deletions
+2
View File
@@ -189,3 +189,5 @@ int pidfd_verify_pid(int pidfd, pid_t pid);
int setpriority_closest(int priority);
_noreturn_ void freeze(void);
int get_process_threads(pid_t pid);