in reply to System call constantly dying

There are several system calls that don't have or die modifiers. You should consider adding them, as well as use warnings;.