in reply to Re^2: Interrupt Handling - What am I doing wrong?
in thread Interrupt Handling - What am I doing wrong?
Do you really not get "Waiting for critical tasks to finish before terminating program"? That would mean your signal handler isn't called at all.
Either way, I already gave a reason the current code won't always work. Executing the signal handler will prevent (at least) that thread from doing anything else. If the signal handler is called from a thread1 thread, that thread1 thread won't be able to progress.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Interrupt Handling - What am I doing wrong?
by vishi (Beadle) on Apr 26, 2011 at 05:56 UTC | |
by ikegami (Patriarch) on Apr 26, 2011 at 06:57 UTC |