From: Russ Cox Date: Thu, 31 Jan 2013 15:53:18 +0000 (-0800) Subject: os: use signal strings where possible in ProcessState.String X-Git-Tag: go1.1rc2~1217 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=30985c1203d52cc03282dea32779ba060f77ed23;p=gostls13.git os: use signal strings where possible in ProcessState.String R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/7228067 --- diff --git a/src/pkg/os/exec_posix.go b/src/pkg/os/exec_posix.go index 2ced4d673b..f7b10f3c69 100644 --- a/src/pkg/os/exec_posix.go +++ b/src/pkg/os/exec_posix.go @@ -118,9 +118,9 @@ func (p *ProcessState) String() string { case status.Exited(): res = "exit status " + itod(status.ExitStatus()) case status.Signaled(): - res = "signal " + itod(int(status.Signal())) + res = "signal: " + status.Signal().String() case status.Stopped(): - res = "stop signal " + itod(int(status.StopSignal())) + res = "stop signal: " + status.StopSignal().String() if status.StopSignal() == syscall.SIGTRAP && status.TrapCause() != 0 { res += " (trap " + itod(status.TrapCause()) + ")" }