Re: race condition?

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Neal Becker
日付:  
To: Philip Hazel
CC: Neal Becker, Lee McLoughlin, Ian Jackson, exim-users
題目: Re: race condition?
>>>>> "Philip" == Philip Hazel <ph10@???> writes:

[...]
    >> 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 ?


    Philip> On Wed, 10 Apr 1996, Lee McLoughlin wrote:


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


So why not pass the open fd? That does sound a lot more reliable.
Doesn't exec pass open fd's on every un*x system? Why is this 'fairly
fiddly' to do?