process-util: change pid_is_alive() to not eat up errors, and add pidref_is_alive()

Let's no eat up errors, but propagate unexpected ones.
This commit is contained in:
Lennart Poettering
2023-10-18 14:40:25 +02:00
parent 8b51341545
commit becdfcb9f1
6 changed files with 52 additions and 26 deletions
+2 -1
View File
@@ -86,7 +86,8 @@ int pidref_is_kernel_thread(const PidRef *pid);
int getenv_for_pid(pid_t pid, const char *field, char **_value);
bool pid_is_alive(pid_t pid);
int pid_is_alive(pid_t pid);
int pidref_is_alive(const PidRef *pidref);
bool pid_is_unwaited(pid_t pid);
int pid_is_my_child(pid_t pid);
int pid_from_same_root_fs(pid_t pid);