diff options
author | Fazlul Shahriar <fshahriar@gmail.com> | 2011-04-11 12:39:53 -0700 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2011-04-11 12:39:53 -0700 |
commit | 8c1a703560a90e4286eb37571c6bdd001b82276c (patch) | |
tree | fb64f85f9d2af922f668f527ea571ede4713386b | |
parent | e2348deeec9da2f0603bb6245c0dda0c721c9ec3 (diff) | |
download | go-8c1a703560a90e4286eb37571c6bdd001b82276c.tar.gz go-8c1a703560a90e4286eb37571c6bdd001b82276c.zip |
syscall: fix StartProcess in Plan 9
This makes os_test.TestStartProcess test from os package pass.
R=paulzhol, r2, r
CC=golang-dev
https://golang.org/cl/4385052
-rw-r--r-- | src/pkg/syscall/exec_plan9.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/syscall/exec_plan9.go b/src/pkg/syscall/exec_plan9.go index 94ec395d6d..962b39b780 100644 --- a/src/pkg/syscall/exec_plan9.go +++ b/src/pkg/syscall/exec_plan9.go @@ -363,7 +363,7 @@ func forkExec(argv0 string, argv []string, attr *ProcAttr) (pid int, err Error) p[1] = -1 // Convert args to C form. - argv0p := StringBytePtr(argv[0]) + argv0p := StringBytePtr(argv0) argvp := StringArrayPtr(argv) var chroot *byte |