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

Marc Haber Marc Haber <mh+debian-packages@zugschlus.de>, 297607@bugs.debian.org
Sun, 27 Mar 2005 20:31:21 +0200


On Sun, Mar 27, 2005 at 08:19:05PM +0200, Frans Pop wrote:
> On Sunday 27 March 2005 19:47, Marc Haber wrote:
> > And where was the 30 seconds delay? strace has an option to put
> > timestamps into the trace, that would be helpful here.
> 
> The delay is during all the repeats of:
> <snip>
> kill(1235, SIG_0)                       = 0
> gettimeofday({1111935399, ######}, NULL) = 0
> select(0, NULL, NULL, NULL, {0, 20000}) = 0 (Timeout)
> gettimeofday({1111935399, ######}, NULL) = 0
> open("/var/run/exim4/exim.pid", O_RDONLY|O_LARGEFILE) = 3
> fstat64(3, {st_mode=S_IFREG|0644, st_size=5, ...}) = 0
> mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
> 0x7001a000
> read(3, "1235\n", 8192)                 = 5
> stat64("/proc/1235/exe", {st_mode=S_IFREG|S_ISUID|0755, 
> st_size=645744, ...}) = 0
> close(3)                                = 0
> munmap(0x7001a000, 8192)                = 0
> </snip>
> 
> I'll get back with the rest later.

Can you see if the pid in /var/run/exim4/exim.pid is really the pid of
the running process? Possibly the pidfile gets desynced with the
daemon and s-s-d tries to kill a non-existing daemon?

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835