nmh-workers
[Top][All Lists]
Advanced

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

Re: [nmh-workers] closefds() _before_ fork?


From: Paul Vixie
Subject: Re: [nmh-workers] closefds() _before_ fork?
Date: Tue, 23 Apr 2019 05:59:05 -0700
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 PostboxApp/6.1.14



Ralph Corderoy wrote on 2019-04-23 05:10:
...

I agree with the general principle that if we open it, we track it, and
then close it so it doesn't reach the child, typically with O_CLOEXEC or
FD_CLOEXEC.  ...

to that end, i propose that we treat any open descriptor N>2 at the time of an exec() to be a bug, which is to be fixed by setting O_CLOEXEC at time of creation.

--
P Vixie




reply via email to

[Prev in Thread] Current Thread [Next in Thread]