This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]