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: Andy Bradford
Subject: Re: [nmh-workers] closefds() _before_ fork?
Date: 23 Apr 2019 14:52:18 -0600

Thus said Paul Vixie on Tue, 23 Apr 2019 05:59:05 -0700:

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

What impact will such a decision have on tools like setlock which open a
filedescriptor, obtain an  exclusive lock, and then exec  a process? For
example, I may  use something like the following in  a script to prevent
multiple processes from incorporating email:

setlock /tmp/mit.lock inc +MyIncTmp ...

Thanks,

Andy
-- 
TAI64 timestamp: 400000005cbf7b26





reply via email to

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