This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: [Various] libc/1828: signal handler chages errno while doing fdopen(3) to pipe.
- To: aj at suse dot de
- Subject: Re: [Various] libc/1828: signal handler chages errno while doing fdopen(3) to pipe.
- From: Geoff Keating <geoffk at cygnus dot com>
- Date: Tue, 25 Jul 2000 10:52:27 -0700
- CC: libc-alpha at sourceware dot cygnus dot com, j-okajim at nskli014 dot nsk dot nis dot nec dot co dot jp
- References: <u81z0ihebk.fsf@gromit.rhein-neckar.de>
> From: Andreas Jaeger <aj@suse.de>
> Date: 25 Jul 2000 09:14:07 +0200
> We've received the appended bug report which I've answered directly
> with a reference to ISO C99.
>
> Looking again into it, I noticed that Unix98 and Posix allow to call
> certain asynch-signal safe functions - which might set errno as a side
> effect. What can we do? Can we do anything at all?
The user should save and restore errno inside their signal handler...
--
- Geoffrey Keating <geoffk@cygnus.com>