diff options
| author | Russ Cox <rsc@golang.org> | 2011-06-14 10:49:34 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2011-06-14 10:49:34 -0400 |
| commit | 4d0f2e9195304e595c706de381d4a59d6f6f72bf (patch) | |
| tree | 040186f9d0bf480d9a3e2ae61a771a8f07c723e7 /src/pkg/debug | |
| parent | 371aa14e0606f0a34a89330be1a34e908603e6c2 (diff) | |
| download | go-4d0f2e9195304e595c706de381d4a59d6f6f72bf.tar.xz | |
syscall, os, exec: introduce *syscall.SysProcAttr field in os.ProcAttr and exec.Cmd
R=r, bradfitz, alex.brainman, borman, vincent.vanackere
CC=golang-dev
https://golang.org/cl/4607046
Diffstat (limited to 'src/pkg/debug')
| -rw-r--r-- | src/pkg/debug/proc/proc_linux.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/pkg/debug/proc/proc_linux.go b/src/pkg/debug/proc/proc_linux.go index 153c3e99b7..5831b0e979 100644 --- a/src/pkg/debug/proc/proc_linux.go +++ b/src/pkg/debug/proc/proc_linux.go @@ -1284,9 +1284,11 @@ func Attach(pid int) (Process, os.Error) { // details. func StartProcess(argv0 string, argv []string, attr *os.ProcAttr) (Process, os.Error) { sysattr := &syscall.ProcAttr{ - Dir: attr.Dir, - Env: attr.Env, - Ptrace: true, + Dir: attr.Dir, + Env: attr.Env, + Sys: &syscall.SysProcAttr{ + Ptrace: true, + }, } p := newProcess(-1) |
