process-util: add pidref-based version of wait_for_terminate_and_check()

This commit is contained in:
Lennart Poettering
2025-04-03 00:11:27 +09:00
committed by Yu Watanabe
parent f5c626df2c
commit 4ecc87bf1c
2 changed files with 21 additions and 10 deletions
+2
View File
@@ -75,7 +75,9 @@ typedef enum WaitFlags {
WAIT_LOG = WAIT_LOG_ABNORMAL|WAIT_LOG_NON_ZERO_EXIT_STATUS,
} WaitFlags;
int pidref_wait_for_terminate_and_check(const char *name, PidRef *pidref, WaitFlags flags);
int wait_for_terminate_and_check(const char *name, pid_t pid, WaitFlags flags);
int wait_for_terminate_with_timeout(pid_t pid, usec_t timeout);
void sigkill_wait(pid_t pid);