[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Threads




> There *is* a detail you missed and is a freakin' showstopper for this:
> on Linux at least, every thread has a separate entry in the process
> table and they each receive their own signals in their own thread. In
> fact, this point make everybody pull their hair out when it comes down
> to signals.

Ah but the main thread (process) blocked signals, and all the child
threads (processes) inherit these blocked signals. So in theory, they
should not receive any, they should all go to the main thread only,
blocked in sigwait(). It seems to work so far, anyway :)

Michael