Re: Per-descriptor state

2023-04-30 Thread Mouse
>> Close-on-fork is apparently either coming or already here, [...] > We don't have it, but it will be in Posix-8. [...] not sure if > anyone has thought of a way to add it to socket() - It's looking to me as though more and more syscalls are having to grow flags arguments to do things right. Au

Re: Per-descriptor state

2023-04-30 Thread Robert Elz
Date:Sun, 30 Apr 2023 05:25:41 + From:David Holland Message-ID: | Close-on-fork is apparently either coming or already here, not sure | which, but it's also per-descriptor. We don't have it, but it will be in Posix-8. Largely inspired by the needs of threa

Re: Per-descriptor state

2023-04-30 Thread Mouse
> Close-on-fork is apparently either coming or already here, not sure > which, but it's also per-descriptor. I should probably add that here, then, though use cases will likely be rare. I can think of only one program I wrote where it'd be useful; I created a "close these fds post-fork" data stru