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: Robert Elz
Subject: Re: [nmh-workers] closefds() _before_ fork?
Date: Wed, 24 Apr 2019 10:31:09 +0700

    Date:        Tue, 23 Apr 2019 19:35:11 -0400
    From:        Ken Hornstein <address@hidden>
    Message-ID:  <address@hidden>

  | There are tons of examples like this in nmh; plenty of child processes
  | are created with descriptors open.

It is worth remembering that MH was written before close-on-exec was
invented ... I suspect that much of what you're seeing is simply a
result of that, rather than anything else in particular.

Using close-on-exec sounds like the right way to me, and if it turns
out that some particular uses require a fd to be passed down (which
usually also requires some arg to tell the child which fd that is)
then those can be fixed when discovered.

kre




reply via email to

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