Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(647)

Issue 4253052: code review 4253052: os, syscall: add ProcAttributes type. Change StartProce... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 2 months ago by rog
Modified:
13 years, 2 months ago
Reviewers:
CC:
rsc, gri, brainman, rsc1, golang-dev
Visibility:
Public.

Description

os, syscall: add ProcAttr type. Change StartProcess etc. to use it. The Windows code is untested.

Patch Set 1 #

Patch Set 2 : diff -r 98d584670c65 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 98d584670c65 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 98d584670c65 https://go.googlecode.com/hg/ #

Total comments: 3

Patch Set 5 : diff -r 611653f358d7 https://go.googlecode.com/hg/ #

Patch Set 6 : diff -r 611653f358d7 https://go.googlecode.com/hg/ #

Patch Set 7 : diff -r 611653f358d7 https://go.googlecode.com/hg/ #

Patch Set 8 : diff -r 611653f358d7 https://go.googlecode.com/hg/ #

Patch Set 9 : diff -r 611653f358d7 https://go.googlecode.com/hg/ #

Patch Set 10 : diff -r 611653f358d7 https://go.googlecode.com/hg/ #

Total comments: 8

Patch Set 11 : diff -r 6e3dda8b91b3 https://go.googlecode.com/hg/ #

Patch Set 12 : diff -r 6e3dda8b91b3 https://go.googlecode.com/hg/ #

Total comments: 1

Patch Set 13 : diff -r 6e3dda8b91b3 https://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 14 : diff -r 6e3dda8b91b3 https://go.googlecode.com/hg/ #

Patch Set 15 : diff -r 6e3dda8b91b3 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -54 lines) Patch
M src/cmd/cgo/util.go View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/godoc/main.go View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/debug/proc/proc_linux.go View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +12 lines, -6 lines 0 comments Download
M src/pkg/exec/exec.go View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/http/triv.go View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M src/pkg/os/exec.go View 1 2 3 4 5 6 7 8 9 10 1 chunk +31 lines, -12 lines 0 comments Download
M src/pkg/os/os_test.go View 1 2 3 4 5 6 7 8 9 10 2 chunks +7 lines, -6 lines 0 comments Download
M src/pkg/syscall/exec_unix.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +42 lines, -20 lines 0 comments Download
M src/pkg/syscall/exec_windows.go View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +18 lines, -6 lines 0 comments Download

Messages

Total messages: 26
rog
Hello rsc, gri (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 2 months ago (2011-03-03 20:04:03 UTC) #1
rsc
s/Attributes/Attr/ why not put the fd and env there too?
13 years, 2 months ago (2011-03-03 20:07:04 UTC) #2
rog
one possibility for the ProcAttributes methods is to have them return the receiver so that ...
13 years, 2 months ago (2011-03-03 20:07:54 UTC) #3
rog
why not indeed. On 3 March 2011 20:07, Russ Cox <rsc@golang.org> wrote: > s/Attributes/Attr/ > ...
13 years, 2 months ago (2011-03-03 20:08:18 UTC) #4
rsc
On Thu, Mar 3, 2011 at 15:07, roger peppe <rogpeppe@gmail.com> wrote: > one possibility for ...
13 years, 2 months ago (2011-03-03 20:09:00 UTC) #5
rsc
The reason for the helpers is not obvious to me. Why can't we just define ...
13 years, 2 months ago (2011-03-03 20:16:47 UTC) #6
rog
On 3 March 2011 20:10, Russ Cox <rsc@golang.org> wrote: > The reason for the helpers ...
13 years, 2 months ago (2011-03-03 20:30:13 UTC) #7
brainman
http://codereview.appspot.com/4253052/diff/2002/src/pkg/os/exec.go File src/pkg/os/exec.go (left): http://codereview.appspot.com/4253052/diff/2002/src/pkg/os/exec.go#oldcode29 src/pkg/os/exec.go:29: // If dir is not empty, the child chdirs ...
13 years, 2 months ago (2011-03-04 00:02:16 UTC) #8
rog
On 3 March 2011 20:30, roger peppe <rogpeppe@gmail.com> wrote: > - with the helper functions ...
13 years, 2 months ago (2011-03-04 09:32:43 UTC) #9
rsc
I think syscall and os should have different structures. os.StartProcess will have to create a ...
13 years, 2 months ago (2011-03-05 20:19:23 UTC) #10
rog
On 2011/03/05 20:19:23, rsc wrote: > I think syscall and os should have different structures. ...
13 years, 2 months ago (2011-03-08 12:14:05 UTC) #11
rog
upload succeeded eventually (maybe something timed out on the server). PTAL
13 years, 2 months ago (2011-03-08 14:40:30 UTC) #12
rsc
make sure that GOARCH=386 GOOS=windows make works in package syscall http://codereview.appspot.com/4253052/diff/7010/src/pkg/os/exec.go File src/pkg/os/exec.go (right): http://codereview.appspot.com/4253052/diff/7010/src/pkg/os/exec.go#newcode27 ...
13 years, 2 months ago (2011-03-08 17:43:28 UTC) #13
brainman
On 2011/03/08 14:40:30, rog wrote: > PTAL GOARCH=386 GOOS=linux fails with: rex src # cd ...
13 years, 2 months ago (2011-03-08 23:02:09 UTC) #14
rog
On 8 March 2011 17:43, <rsc@golang.org> wrote: > make sure that > > GOARCH=386 GOOS=windows ...
13 years, 2 months ago (2011-03-09 16:19:59 UTC) #15
rog
PTAL http://codereview.appspot.com/4253052/diff/7010/src/pkg/os/exec.go File src/pkg/os/exec.go (right): http://codereview.appspot.com/4253052/diff/7010/src/pkg/os/exec.go#newcode27 src/pkg/os/exec.go:27: // If Dir is non-empty, the child chdirs ...
13 years, 2 months ago (2011-03-09 16:20:36 UTC) #16
rog
On 8 March 2011 23:02, <alex.brainman@gmail.com> wrote: > proc_linux.go:1300: undefined: syscall.PtraceForkExec i've modified this file, ...
13 years, 2 months ago (2011-03-09 16:21:33 UTC) #17
brainman
GOARCH=386 GOOS=linux still fails with: rex src # cd pkg/debug/proc/ rex proc # make clean ...
13 years, 2 months ago (2011-03-10 04:58:32 UTC) #18
rog
On 10 March 2011 04:58, <alex.brainman@gmail.com> wrote: > GOARCH=386 GOOS=linux still fails with: > > ...
13 years, 2 months ago (2011-03-10 08:51:08 UTC) #19
brainman
LGTM
13 years, 2 months ago (2011-03-10 22:57:35 UTC) #20
rsc1
Otherwise LGTM http://codereview.appspot.com/4253052/diff/4019/src/pkg/syscall/exec_unix.go File src/pkg/syscall/exec_unix.go (right): http://codereview.appspot.com/4253052/diff/4019/src/pkg/syscall/exec_unix.go#newcode106 src/pkg/syscall/exec_unix.go:106: // we could copy this if we ...
13 years, 2 months ago (2011-03-15 17:14:35 UTC) #21
rog
http://codereview.appspot.com/4253052/diff/4019/src/pkg/syscall/exec_unix.go File src/pkg/syscall/exec_unix.go (right): http://codereview.appspot.com/4253052/diff/4019/src/pkg/syscall/exec_unix.go#newcode106 src/pkg/syscall/exec_unix.go:106: // we could copy this if we cared about ...
13 years, 2 months ago (2011-03-15 17:29:33 UTC) #22
rsc1
Could you make a copy? I don't think I did that intentionally. Russ
13 years, 2 months ago (2011-03-15 17:31:50 UTC) #23
rog
On 2011/03/15 17:31:50, rsc1 wrote: > Could you make a copy? I don't think I ...
13 years, 2 months ago (2011-03-15 17:37:19 UTC) #24
rsc1
LGTM
13 years, 2 months ago (2011-03-15 17:38:34 UTC) #25
rsc
13 years, 2 months ago (2011-03-15 18:41:50 UTC) #26
*** Submitted as http://code.google.com/p/go/source/detail?r=2df52def7535 ***

os, syscall: add ProcAttr type. Change StartProcess etc. to use it.
The Windows code is untested.

R=rsc, gri, brainman, rsc1
CC=golang-dev
http://codereview.appspot.com/4253052

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b