process-util: port pid_from_same_root_fs() to pidref, and port three places over to it

This commit is contained in:
Lennart Poettering
2025-01-16 11:55:21 +01:00
parent a65de78d5c
commit d6267b9b18
6 changed files with 123 additions and 50 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ int pid_is_unwaited(pid_t pid);
int pidref_is_unwaited(const PidRef *pidref);
int pid_is_my_child(pid_t pid);
int pidref_is_my_child(const PidRef *pidref);
int pid_from_same_root_fs(pid_t pid);
int pidref_from_same_root_fs(PidRef *a, PidRef *b);
bool is_main_thread(void);