Commit 3e37720b authored by Rob Pike's avatar Rob Pike

syscall: terminate error string in exec package on Plan 9

Try to prevent messages like this:
        './pack' file does not exist����������������������������������������������������������������������������������������������������
TBR=adonovan

LGTM=adonovan
R=adonovan
CC=golang-codereviews
https://golang.org/cl/66270043
parent 0d11cd1b
......@@ -486,7 +486,7 @@ func forkExec(argv0 string, argv []string, attr *ProcAttr) (pid int, err error)
if err != nil || n != 0 {
if n != 0 {
err = NewError(string(errbuf[:]))
err = NewError(string(errbuf[:n]))
}
// Child failed; wait for it to exit, to make sure
......
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