diff options
author | pjd <pjd@FreeBSD.org> | 2010-10-04 21:43:06 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2010-10-04 21:43:06 +0000 |
commit | b85b0868d9fd8bf233b83cdd9f1b43cb430a0d31 (patch) | |
tree | 29dc0a0c2303c317e05211120eb51803bc935c21 /sbin/hastd/hooks.c | |
parent | 0651a7ac68496a46c14397f853730a149dd8809c (diff) | |
download | FreeBSD-src-b85b0868d9fd8bf233b83cdd9f1b43cb430a0d31.zip FreeBSD-src-b85b0868d9fd8bf233b83cdd9f1b43cb430a0d31.tar.gz |
hook_check() is now only used to report about long-running hooks, so the
argument is redundant, remove it.
MFC after: 3 days
Diffstat (limited to 'sbin/hastd/hooks.c')
-rw-r--r-- | sbin/hastd/hooks.c | 12 |
1 files changed, 1 insertions, 11 deletions
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); |