Autore: Ian Jackson Data: To: Lee McLoughlin CC: Neal Becker, exim-users Oggetto: Re: race condition?
Lee McLoughlin writes ("Re: race condition?"): > Neal Becker wrote: ... > > --- mainlog ---
> > 1996-04-09 16:42:44 pid 242: SIGHUP received: re-exec daemon
> > ---------------
> > --- paniclog ---
> > 1996-04-09 16:42:44 socket bind() to port 25 failed: Address already in use
> > --------------- ... >
> Serveral unixes hang onto bound sockets after the process that owns them has vanished.
> Solaris 2.4 was particularly bad, Solaris 2.5 seems to have fixed it, but both Solaris
> and Sunos kernels certainly did this. Sometimes delaying for 60 seconds would give
> things time to clear.
Surely when it re-execs itself it should pass the socket file
descriptor on to the new daemon process, so that it doesn't have to be
created and bound again ?