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

Andreas Schwab schwab@suse.de
Tue Jul 25 01:19:00 GMT 2000


Andreas Jaeger <aj@suse.de> writes:

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

But SUS2 also says (sigaction/APPLICATION USAGE):

Note in particular that even the "safe" functions may modify errno; the
signal-catching function, if not executing as an independent thread, may
want to save and restore its value.

Andreas.

-- 
Andreas Schwab                                  "And now for something
SuSE Labs                                        completely different."
Andreas.Schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg


More information about the Libc-alpha mailing list