You didn't really indicate how long the system calls take. If you know they normally take e.g 4 minutes then an alarm of five minutes would resolve your problem. Though that's really more of a workaround. I will bump this to the frontpage to increase the chances that soemone more familiar with with forking and signal handling will look at at it.