This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: SIGINT, longjmp, getaddrinfo
- From: Hal Murray <hmurray at megapathdsl dot net>
- To: Michael Kerrisk <mtk dot manpages at gmail dot com>
- Cc: Hal Murray <hmurray at megapathdsl dot net>, libc-help <libc-help at sourceware dot org>
- Date: Wed, 17 Feb 2016 02:13:07 -0800
- Subject: Re: SIGINT, longjmp, getaddrinfo
- Authentication-results: sourceware.org; auth=none
Thanks.
mtk.manpages@gmail.com said:
> Yep, it is a lack in the man pages generally. But there is a list of
> non-async-signal-safe function sin signal(7).
Your recent man pages have a list of safe functions but not a list of unsafe
ones.
> And now I've added this text to the completely revamped setjmp(2) man page[1]:
...
Looks good. Thanks. (The date on the bottom still says 2015-08-08.)
I'm still trying to figure out how to bail cleanly. I tried the set-flag approach. getnameinfo doesn't bail. I think I will have the same problem if I try to use pthread_cancel. Either it might leave dangling sockets and memory around, or it will take a long time.
I might be able to do something like use a separate thread to do just the getnameinfo. If I want to bail, I let it complete but ignore the answer. That is getting incredibly complicated.
--
These are my opinions. I hate spam.