Fix monitor deadlock on panic

This commit is contained in:
Jakob Borg 2014-10-12 13:53:21 +02:00
parent f1aff0fd96
commit bb01b76582
1 changed files with 1 additions and 0 deletions

View File

@ -161,6 +161,7 @@ func copyStderr(stderr io.ReadCloser) {
for _, line := range stdoutLastLines {
panicFd.WriteString(line)
}
stdoutMut.Unlock()
}
panicFd.WriteString("Panic at " + time.Now().Format(time.RFC3339) + "\n")