single argument panic on non-darwin and in comments

R=r
CC=golang-dev
https://golang.org/cl/800042
This commit is contained in:
Russ Cox 2010-03-30 13:15:16 -07:00
parent ac58f646ac
commit 1231382b9e
6 changed files with 12 additions and 12 deletions

View file

@ -430,7 +430,7 @@ func (t *thread) wait() {
t.logTrace("beginning wait")
ev.Waitmsg, ev.err = os.Wait(t.tid, syscall.WALL)
if ev.err == nil && ev.Pid != t.tid {
panic("Wait returned pid ", ev.Pid, " wanted ", t.tid)
panic(fmt.Sprint("Wait returned pid ", ev.Pid, " wanted ", t.tid))
}
if ev.StopSignal() == syscall.SIGSTOP && t.ignoreNextSigstop {
// Spurious SIGSTOP. See Thread.Stop().