From: Adam Di Carlo Date: Mon, 13 Jan 2003 06:23:15 +0000 (+0000) Subject: if the xslt process dies, this script should exit with a non-zero status X-Git-Tag: release/1.79.1~6^2~4940 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=735d30d7fb53364db7e9bea7fd5998db48b45f15;p=docbook-dsssl if the xslt process dies, this script should exit with a non-zero status --- diff --git a/cvstools/xslt b/cvstools/xslt index e64aee0b1..dc1e71fab 100755 --- a/cvstools/xslt +++ b/cvstools/xslt @@ -129,7 +129,13 @@ my $startTime = time(); if (! $quiet) { print "$cmd\n"; } -system($cmd); +my $retVal = system($cmd); my $endTime = time(); print "Time: ", $endTime - $startTime, "s\n" if $time; + +if ($retVal) { + exit $retVal / 256; +} else { + exit 0; +}