Re: race condition?

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Lee McLoughlin
日付:  
To: Ian Jackson
CC: Neal Becker, exim-users
題目: Re: race condition?
Ian Jackson wrote:
>
> > 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 ?


Yes ideally it should.  However it is fairly fiddly to do.  A lot of exec's
will close off all file descriptors unless you are careful to setup flags.
--
Lee McLoughlin.                         Phone: +44 171 594 8388
IC-Parc, Imperial College,              Fax:   +44 171 594 8449
South Kensington, London. SW7 2BZ. UK.  Email: L.McLoughlin@???