This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Saving errno around signal handlers
- From: Florian Weimer <fweimer at redhat dot com>
- To: Roland McGrath <roland at hack dot frob dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Mon, 03 Mar 2014 09:38:30 +0100
- Subject: Re: Saving errno around signal handlers
- Authentication-results: sourceware.org; auth=none
- References: <531077D9 dot 2000308 at redhat dot com> <20140228211938 dot B5FD5744B5 at topped-with-meat dot com>
On 02/28/2014 10:19 PM, Roland McGrath wrote:
POSIX has green-lighted saving errno around signal handlers.
I don't even know what you might think that means. Whenever talking about
a change in a standard, provide a reference to the actual change in the
actual standard.
It's about this change:
<http://austingroupbugs.net/view.php?id=807>
At present, many signal handlers are incorrect, even though they only
call async-signal-safe functions because they fail to save and restore
errno.
--
Florian Weimer / Red Hat Product Security Team