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
In reply to Re: Setting signal handlers considered unsafe?
by pileofrogs
in thread Setting signal handlers considered unsafe?
by gnosek
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |