in reply to Re: Threads, bash, and networking
in thread Threads, bash, and networking
To be clearer, SIGALRM handlers inside the child thread are apparently never reached.
By that, I assume you mean that alarms raised in one thread are not caught in other threads.
Why would you expect that they would be? Signals don't cross fork boundaries, so why expect they might cross thread boundaries?
Remember, there is no parent-child relationship between threads, so if an alarm raised in one thread could be caught in a thread it spawned, it would also be caught by every other thread in the program.
There would simply be no way to reason about a system that meant that every thread received every signal raised in any other thread.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Threads, bash, and networking
by juster (Friar) on Oct 23, 2010 at 06:20 UTC | |
by BrowserUk (Patriarch) on Oct 23, 2010 at 06:47 UTC | |
by juster (Friar) on Oct 23, 2010 at 07:22 UTC | |
by BrowserUk (Patriarch) on Oct 23, 2010 at 07:46 UTC |