[Various] libc/1828: signal handler chages errno while doing fdopen(3) to pipe.

Geoff Keating geoffk@cygnus.com
Tue Jul 25 10:52:00 GMT 2000


> 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>


More information about the Libc-alpha mailing list