Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Oct 2010 21:10:18 +0200
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        Mikolaj Golub <to.my.trociny@gmail.com>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: hastd: zombies after hooks
Message-ID:  <20101004191018.GI7322@garage.freebsd.pl>
In-Reply-To: <86hbh3igw4.fsf@kopusha.home.net>
References:  <86hbh3igw4.fsf@kopusha.home.net>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On Sun, Oct 03, 2010 at 03:45:47PM +0300, Mikolaj Golub wrote:
> Hi,
> 
> After recent changes hastd does not garbage collect finished hooks leaving
> zombies and messages in log like below:
> 
> Oct  3 18:21:05 bolek hastd[5144]: Hook is running for 1330 seconds (pid=5223, cmd=[/usr/bin/true connect storage]).
> 
> This is because wait3() in hook_check() is never called (we never call
> hook_check(true)). Below is a patch that works for me. 

We don't call it, because it is not needed anymore. I believe there is a
problem, but I think it must be somewhere else.

In the main process there are two kinds of processes we fork: worker 
processes and hook processes. When SIGCHLD is received we call 
child_exit(), which first check if this is worker process (corresponding
resource is configured). If this is not worker process then it must be
hook process, so it calls hook_check_one().

I'll try to reproduce it and will get back to you.

-- 
Pawel Jakub Dawidek                       http://www.wheelsystems.com
pjd@FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)

iEYEARECAAYFAkyqJpoACgkQForvXbEpPzTdEACdEvsCxDzuqa6jnK6LqwtgsR4v
hb0AoKLtTYJwYzaB+zaUSoml/PkgDiSs
=CwCp
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101004191018.GI7322>