This is the mail archive of the libc-help@sourceware.org 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]
Other format: [Raw text]

Re: SIGINT, longjmp, getaddrinfo


On 02/17/2016 11:46 AM, Stephan Bergmann wrote:
> On 02/16/2016 04:00 PM, Michael Kerrisk wrote:
>> And now I've added this text to the completely revamped setjmp(2) man page[1]:
>>
>>         POSIX.1-2008  Technical  Corrigendum  2  adds  longjmp() and sigâ
>>         longjmp() to the list of async-signal-safe  functions.   However,
>>         the  standard recommends avoiding the use of these functions from
>>         signal handlers and goes on to point out that if these  functions
>>         are  called  from  a  signal handler that interrupted a call to a
>>         non-async-signal-safe function (or some equivalent, such  as  the
>>         steps  equivalent  to  exit(3)  that occur upon a return from the
>>         initial call to main()), the behavior is undefined if the program
>>         subsequently  makes  a call to a non-async-signal-safe.  The only
> 
> Looks like there is "function" missing after "non-async-signal-safe" above.

Thanks. Fixed!

Cheers,

Michael



-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/


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