Bug#297607: Long pause when exim daemon is being stopped (was: Re: exim4 prone to break d-i, bug #297607)

Eugeniy Meshcheryakov Eugeniy Meshcheryakov <eugen@univ.kiev.ua>, 297607@bugs.debian.org
Mon, 28 Mar 2005 15:52:00 +0300


--IJpNTDwzlM2Ie8A6
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

28.03.2005 =D0=BE 00:21 +0200 Frans Pop =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=
=B0=D0=B2(-=D0=BB=D0=B0):
> > Is it possible that the installer establishes a signal handler which
> > is then inherited by the processes started from the installer, and
> > thus the SIGTERM sent by s-s-d to exim is caught by that handler
> > instead of getting through to exim?
>=20
> Could well be. /usr/sbin/base-config has:
>=20
> <snip>
> if [ "$NEW" ]; then
>         # Trap most signals because a ctrl-c killing base-config
>         # in the middle of the second stage install would be bad.
>         trap "" HUP INT QUIT TERM
>=20
>         [some lines not included]
> else
>         # Running again on an existing install. Just trap ctrl-c, and
>         # cleanly exit.
>         trap cleanup INT
> fi
> </snip>
>=20

Here is part of diff of contents of /proc/$PID/status files for exim run
form command line and from base-config:

24c24
< SigIgn:       0000000000001000
---
> SigIgn:       0000000000005006

Those new ignored signals are INT (2+1), QUIT (3+1) and TERM (14+1).

--=20
Eugeniy Meshcheryakov

Kyiv National Taras Shevchenko University
Information and Computing Centre
http://icc.univ.kiev.ua

--IJpNTDwzlM2Ie8A6
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCR/3wKaC6+zmozOIRAuFmAJ4gVZsKlJcPSGlUhCDdTn74kB10XwCggg5S
PFX062LacYqE9vSTMDXArvU=
=iVZs
-----END PGP SIGNATURE-----

--IJpNTDwzlM2Ie8A6--