Commit 30985c12 authored by Russ Cox's avatar Russ Cox

os: use signal strings where possible in ProcessState.String

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/7228067
parent 592b4807
...@@ -118,9 +118,9 @@ func (p *ProcessState) String() string { ...@@ -118,9 +118,9 @@ func (p *ProcessState) String() string {
case status.Exited(): case status.Exited():
res = "exit status " + itod(status.ExitStatus()) res = "exit status " + itod(status.ExitStatus())
case status.Signaled(): case status.Signaled():
res = "signal " + itod(int(status.Signal())) res = "signal: " + status.Signal().String()
case status.Stopped(): case status.Stopped():
res = "stop signal " + itod(int(status.StopSignal())) res = "stop signal: " + status.StopSignal().String()
if status.StopSignal() == syscall.SIGTRAP && status.TrapCause() != 0 { if status.StopSignal() == syscall.SIGTRAP && status.TrapCause() != 0 {
res += " (trap " + itod(status.TrapCause()) + ")" res += " (trap " + itod(status.TrapCause()) + ")"
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment