From 9b23b6d9c8bca35d6e1aa77da8b94918abaca0ce Mon Sep 17 00:00:00 2001 From: bojar Date: Thu, 10 Aug 2006 01:42:49 +0000 Subject: [PATCH] die in safesystem on child's death git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@612 1f5c12ca-751b-0410-a591-d2e778427230 --- scripts/training/train-factored-phrase-model.perl | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/training/train-factored-phrase-model.perl b/scripts/training/train-factored-phrase-model.perl index aeb39d036..f1c99d158 100755 --- a/scripts/training/train-factored-phrase-model.perl +++ b/scripts/training/train-factored-phrase-model.perl @@ -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;