Re: [PATCH] wrapper: add workaround for open() returning EINTR
- From
Jeff King <peff@peff.net>
- Date
- Feb 24, 2021, 04:46 UTC
- Message-ID
- <YDXaJHnZ5LgCj9NX@coredump.intra.peff.net>
- In-Reply-To
- <YDXZY8XFRayiM1If@coredump.intra.peff.net>
On Tue, Feb 23, 2021 at 11:43:16PM -0500, Jeff King wrote:
Show 5 quoted lines
> The workaround here is enabled all the time, without a Makefile knob, > since it's a complete noop if open() never returns EINTR. I did push it > into its own compat/ source file, though, since it has to #undef our > macro redirection. Putting it in a file with other code risks confusion > if more code is added after that #undef.
Whoops, sorry, I had a last-minute change of heart here and just stuck it in wrapper.c with a bit of preprocessor magic to guard it. It felt weird having compat/open.c, when the rest of compat/ is always conditional on Makefile knobs. But I'm happy to go the other way if anybody feels strongly.
-Peff