From: Russ Cox Date: Fri, 9 Oct 2009 23:44:40 +0000 (-0700) Subject: handle compiler crash better: X-Git-Tag: weekly.2009-11-06~359 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=7b5da358cae82dddfab547ca04be204977cdeda6;p=gostls13.git handle compiler crash better: need to use exec to avoid seeing shell output about the crash. R=iant DELTA=2 (1 added, 0 deleted, 1 changed) OCL=35542 CL=35560 --- diff --git a/test/errchk b/test/errchk index 0625dbca10..3aafddb82d 100755 --- a/test/errchk +++ b/test/errchk @@ -30,7 +30,7 @@ close(SRC); # Run command $cmd = join(' ', @ARGV); -open(CMD, "$cmd &1 |") || die "BUG: errchk: run $cmd: $!"; +open(CMD, "exec $cmd &1 |") || die "BUG: errchk: run $cmd: $!"; @out = grep { !/^ / } ; close CMD; @@ -42,6 +42,7 @@ if($? == 0) { if(!WIFEXITED($?)) { print STDERR "BUG: errchk: compiler crashed\n"; + print STDERR @out, "\n"; exit 0; }