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.


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

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