process-util: introduce pid_is_my_child() helper

No functional changes.
This commit is contained in:
Franck Bui
2019-03-20 10:51:49 +01:00
parent dc502f8916
commit 4d05154600
4 changed files with 19 additions and 11 deletions
+1
View File
@@ -69,6 +69,7 @@ int getenv_for_pid(pid_t pid, const char *field, char **_value);
bool pid_is_alive(pid_t pid);
bool pid_is_unwaited(pid_t pid);
int pid_is_my_child(pid_t pid);
int pid_from_same_root_fs(pid_t pid);
bool is_main_thread(void);