Descriptionruntime: make return from main wait for active panic
Arguably if this happens the program is buggy anyway,
but letting the panic continue looks better than interrupting it.
Otherwise things like this are possible, and confusing:
$ go run x.go
panic: $ echo $?
0
$
Fixes issue 3934.
Patch Set 1 #Patch Set 2 : diff -r 19877242dd17 https://code.google.com/p/go/ #Patch Set 3 : diff -r ca70973f6b7a https://code.google.com/p/go/ #Patch Set 4 : diff -r c4f97b9dd1d7 https://go.googlecode.com/hg/ #MessagesTotal messages: 3
|