]> Cypherpunks repositories - gostls13.git/commit
runtime: fix exit status when killed by signal
authorIan Lance Taylor <iant@golang.org>
Fri, 1 Jan 2016 23:44:12 +0000 (15:44 -0800)
committerIan Lance Taylor <iant@golang.org>
Tue, 5 Jan 2016 18:00:33 +0000 (18:00 +0000)
commit2c67c8c3038ec7dddecb6c1b29f0610f3262134d
tree41d176bdbe05d0e922717efc872d4fee0c035bc5
parent81b35117d9e0b99a5894d65c8c419541a48c87dd
runtime: fix exit status when killed by signal

Previously, when a program died because of a SIGHUP, SIGINT, or SIGTERM
signal it would exit with status 2.  This CL fixes the runtime to exit
with a status indicating that the program was killed by a signal.

Change-Id: Ic2982a2562857edfdccaf68856e0e4df532af136
Reviewed-on: https://go-review.googlesource.com/18156
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
src/runtime/crash_unix_test.go
src/runtime/os_nacl.go
src/runtime/signal1_unix.go
src/runtime/signal_386.go
src/runtime/signal_amd64x.go
src/runtime/signal_arm.go
src/runtime/signal_arm64.go
src/runtime/signal_mips64x.go
src/runtime/signal_ppc64x.go
src/runtime/testdata/testprog/signal.go [new file with mode: 0644]