From ef1f62807e55fcd63ce734ef8fd9b32f4e58d659 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Wed, 1 Feb 2006 19:25:34 +0000 Subject: [PATCH] We should be using wait_process(), not waitpid() directly. --- cleanup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cleanup.c b/cleanup.c index b1bf256d..0163dd25 100644 --- a/cleanup.c +++ b/cleanup.c @@ -104,7 +104,8 @@ void _exit_cleanup(int code, const char *file, int line) if (cleanup_child_pid != -1) { int status; - if (waitpid(cleanup_child_pid, &status, WNOHANG) == cleanup_child_pid) { + if (wait_process(cleanup_child_pid, &status, WNOHANG) + == cleanup_child_pid) { status = WEXITSTATUS(status); if (status > code) code = status; -- 2.34.1