Commit b04209ca authored by Russ Cox's avatar Russ Cox

debug/proc: fix build

R=r
CC=golang-dev
https://golang.org/cl/4273060
parent bc34cda7
...@@ -12,6 +12,6 @@ func Attach(pid int) (Process, os.Error) { ...@@ -12,6 +12,6 @@ func Attach(pid int) (Process, os.Error) {
return nil, os.NewError("debug/proc not implemented on OS X") return nil, os.NewError("debug/proc not implemented on OS X")
} }
func ForkExec(argv0 string, argv []string, envv []string, dir string, fd []*os.File) (Process, os.Error) { func StartProcess(argv0 string, argv []string, attr *os.ProcAttr) (Process, os.Error) {
return Attach(0) return Attach(0)
} }
...@@ -12,6 +12,6 @@ func Attach(pid int) (Process, os.Error) { ...@@ -12,6 +12,6 @@ func Attach(pid int) (Process, os.Error) {
return nil, os.NewError("debug/proc not implemented on FreeBSD") return nil, os.NewError("debug/proc not implemented on FreeBSD")
} }
func ForkExec(argv0 string, argv []string, envv []string, dir string, fd []*os.File) (Process, os.Error) { func StartProcess(argv0 string, argv []string, attr *os.ProcAttr) (Process, os.Error) {
return Attach(0) return Attach(0)
} }
...@@ -12,6 +12,6 @@ func Attach(pid int) (Process, os.Error) { ...@@ -12,6 +12,6 @@ func Attach(pid int) (Process, os.Error) {
return nil, os.NewError("debug/proc not implemented on windows") return nil, os.NewError("debug/proc not implemented on windows")
} }
func ForkExec(argv0 string, argv []string, envv []string, dir string, fd []*os.File) (Process, os.Error) { func StartProcess(argv0 string, argv []string, attr *os.ProcAttr) (Process, os.Error) {
return Attach(0) return Attach(0)
} }
...@@ -160,7 +160,7 @@ func cmdLoad(args []byte) os.Error { ...@@ -160,7 +160,7 @@ func cmdLoad(args []byte) os.Error {
} else { } else {
fname = parts[0] fname = parts[0]
} }
tproc, err = proc.ForkExec(fname, parts, os.Environ(), "", []*os.File{os.Stdin, os.Stdout, os.Stderr}) tproc, err = proc.StartProcess(fname, parts, &os.ProcAttr{Files: []*os.File{os.Stdin, os.Stdout, os.Stderr}})
if err != nil { if err != nil {
return err return err
} }
......
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