die in safesystem on child's death

git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@612 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
bojar 2006-08-10 01:42:49 +00:00
parent af1be61259
commit 9b23b6d9c8

View File

@ -1621,6 +1621,7 @@ sub safesystem {
elsif ($? & 127) {
printf STDERR "Execution of: @_\n died with signal %d, %s coredump\n",
($? & 127), ($? & 128) ? 'with' : 'without';
exit(1);
}
else {
my $exitcode = $? >> 8;