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

--va4/JQ6j8/8uipEp
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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

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=20
processes and hook processes. When SIGCHLD is received we call=20
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.

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

--va4/JQ6j8/8uipEp
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)

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

--va4/JQ6j8/8uipEp--



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