From b85b0868d9fd8bf233b83cdd9f1b43cb430a0d31 Mon Sep 17 00:00:00 2001 From: pjd Date: Mon, 4 Oct 2010 21:43:06 +0000 Subject: hook_check() is now only used to report about long-running hooks, so the argument is redundant, remove it. MFC after: 3 days --- sbin/hastd/hooks.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'sbin/hastd/hooks.c') diff --git a/sbin/hastd/hooks.c b/sbin/hastd/hooks.c index 35c3255..9e12300 100644 --- a/sbin/hastd/hooks.c +++ b/sbin/hastd/hooks.c @@ -293,24 +293,14 @@ hook_check_one(pid_t pid, int status) } void -hook_check(bool sigchld) +hook_check(void) { struct hookproc *hp, *hp2; - int status; time_t now; - pid_t pid; assert(hooks_initialized); /* - * If SIGCHLD was received, garbage collect finished processes. - */ - if (sigchld) { - while ((pid = wait3(&status, WNOHANG, NULL)) > 0) - hook_check_one(pid, status); - } - - /* * Report about processes that are running for a long time. */ now = time(NULL); -- cgit v1.1