Re: Which way for posix_spawn close-on-exec improvements?

Chris Hanson <[email protected]> Thu, 16 Apr 2026 21:52:21 -0700
Newsgroups gmane.os.netbsd.devel.kernel
Message-ID <[email protected]>
On Apr 16, 2026, at 1:45 AM, Martin Husemann <[email protected]> wrote:
> 
> On Thu, Apr 16, 2026 at 12:25:35AM -0700, Chris Hanson wrote:
> 
>> I'd love to hear thoughts on it. Neither seems like it'd be
>> particularly difficult to add. (Heck, we could have both if we wanted,
>> they don't really conflict?)
> 
> "Both" was my first gut reaction too. Both of them sound usefull.

And posix_spawn_file_actions_addclosefrom_np is supported on Solaris and Linux too, not just FreeBSD, and it’d probably be very straightforward to just port the FreeBSD code.

Sounds like a plan!

  -- Chris