[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



28.03.2005 о 00:21 +0200 Frans Pop написав(-ла):
> > 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?
> 
> Could well be. /usr/sbin/base-config has:
> 
> <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
> 
>         [some lines not included]
> else
>         # Running again on an existing install. Just trap ctrl-c, and
>         # cleanly exit.
>         trap cleanup INT
> fi
> </snip>
> 

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).

-- 
Eugeniy Meshcheryakov

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

Attachment: signature.asc
Description: Digital signature


Reply to: