in reply to Setting signal handlers considered unsafe?
What are you actually trying to do here? What did you expect to see?
Do you want to set a handler in the parent? You don't need to do anything fancy. Just set the handler in the parent. You can do it from a sub if you want. Don't do it in a while 1 loop, that's just asking for trouble. You don't need to local it, because it's a forked process at that point, it's totally separate from the child.
Once you go into mult-process and multi-thread, you really have to watch out. Strange error messages that are different every time you run are pretty normal if you don't have a good understanding of the non-sequentiality of these things.
--Pileofrogs
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Setting signal handlers considered unsafe?
by gnosek (Sexton) on Nov 05, 2008 at 20:39 UTC | |
by djp (Hermit) on Nov 06, 2008 at 01:12 UTC | |
by gnosek (Sexton) on Nov 06, 2008 at 09:11 UTC |