in reply to How to create private signals? (or block interruption)

The problem you are facing is many system routines are not reentrant, so they don't like being interrupted by another call to the same routine.

In general it is better avoid commands that require system call in a signal handler: when possible use the handler to set up a flag to be used in your program main loop.

Rule One: "Do not act incautiously when confronting a little bald wrinkly smiling man."

  • Comment on Re: How to create private signals? (or block interruption)