From 9f5650aecb22a1d864b2c0b749910556795f1490 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 17 Feb 2014 18:28:53 +0100 Subject: util: generalize code that checks whether PIDs are alive or unwaited for --- src/shared/util.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/shared/util.h') diff --git a/src/shared/util.h b/src/shared/util.h index 7c88dad631..a41348e32e 100644 --- a/src/shared/util.h +++ b/src/shared/util.h @@ -858,7 +858,8 @@ int container_get_leader(const char *machine, pid_t *pid); int namespace_open(pid_t pid, int *pidns_fd, int *mntns_fd, int *root_fd); int namespace_enter(int pidns_fd, int mntns_fd, int root_fd); -bool pid_valid(pid_t pid); +bool pid_is_alive(pid_t pid); +bool pid_is_unwaited(pid_t pid); int getpeercred(int fd, struct ucred *ucred); int getpeersec(int fd, char **ret); -- cgit v1.2.3-54-g00ecf