This is the mail archive of the cygwin mailing list for the Cygwin 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] |
Hi, The attached program doesn't work as expected: if I run it and try to kill it (-15), nothing seem happens. I if comment out pthread_sigmask(), it does work as expected: the handler is called, and threads are interrupted. What's more: if I move pthread_sigmask() after the pause() call in the foo() function, killing works twice, but no more. It seems like signal masks are not handled per-thread, and the source code for pthread_sigmask seems to confirm that. This can pose problem with signal distribution for some programs which require posix semantic here. Regards, Samuel
Attachment:
test.c
Description: Text document
-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |