> I'm not sure if the subject line is worded correctly, but chasing
> another problem I noticed that a thread (e.g., main thread) after call
> to pthread_join() isn't interrupted to handle signals.

Known bug with OpenBSD pthreads.  A sleeping thread will not get signaled
until it wakes for some other reason.  In the test program main is sleeping
in the call to pthread join.  It won't see any signals until thr1 exits.

If you enable interrupts in thr1 the program will terminate as expected.

Don't call printf from signal handlers.

/\/\arc

Reply via email to