ensure sigprocmask is not inherited; correct killpg invocation