This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [RFC] EINTR and PC loser-ing library design
- From: Florian Weimer <fweimer at redhat dot com>
- To: danny dot milo+a at gmail dot com, libc-alpha at sourceware dot org
- Date: Mon, 08 Dec 2014 14:28:20 +0100
- Subject: Re: [RFC] EINTR and PC loser-ing library design
- Authentication-results: sourceware.org; auth=none
- References: <esmoarexomn dot wl-danny dot milo+a at gmail dot com>
On 12/08/2014 02:22 PM, danny.milo+a@gmail.com wrote:
- add an intr_handler callback (pointer) to glibc, setable by the user, defaulting to one just returning (-1).
Using a callback is very dubious because it is difficult to specify its
semantics, and it will negatively interfere with current and future
compiler optimizations.
Maybe a thread-local flag which controls retry-on-EINTR behavior might
make sense, but it's reasonable to check what other systems do first
(and perhaps bring this up in the Austin working group for POSIX
standardization).
--
Florian Weimer / Red Hat Product Security