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

Issue 5162050: code review 5162050: exec: add Command.ExtraFiles (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 5 months ago by bradfitz
Modified:
13 years, 5 months ago
Reviewers:
CC:
rsc, dsymonds, golang-dev
Visibility:
Public.

Description

exec: add Command.ExtraFiles Allows passing extra fds to the child process. Fixes issue 2329

Patch Set 1 #

Patch Set 2 : diff -r 98484b363aab https://go.googlecode.com/hg #

Patch Set 3 : diff -r 98484b363aab https://go.googlecode.com/hg #

Total comments: 3

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -0 lines) Patch
M src/pkg/exec/exec.go View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M src/pkg/exec/exec_test.go View 1 2 3 3 chunks +43 lines, -0 lines 0 comments Download

Messages

Total messages: 8
bradfitz
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg
13 years, 5 months ago (2011-10-03 21:49:31 UTC) #1
rsc
I am not sure. Not everything supports 'extra files'. The os.ProcAttr comment is very clear ...
13 years, 5 months ago (2011-10-03 21:52:20 UTC) #2
dsymonds
LGTM http://codereview.appspot.com/5162050/diff/5001/src/pkg/exec/exec.go File src/pkg/exec/exec.go (right): http://codereview.appspot.com/5162050/diff/5001/src/pkg/exec/exec.go#newcode70 src/pkg/exec/exec.go:70: ExtraFiles []*os.File What about just calling it "Files"?
13 years, 5 months ago (2011-10-03 21:52:59 UTC) #3
bradfitz
I saw some code that had to use os.StartProcess instead of exec because of lack ...
13 years, 5 months ago (2011-10-03 21:54:05 UTC) #4
bradfitz
http://codereview.appspot.com/5162050/diff/5001/src/pkg/exec/exec.go File src/pkg/exec/exec.go (right): http://codereview.appspot.com/5162050/diff/5001/src/pkg/exec/exec.go#newcode70 src/pkg/exec/exec.go:70: ExtraFiles []*os.File On 2011/10/03 21:52:59, dsymonds wrote: > What ...
13 years, 5 months ago (2011-10-03 21:54:25 UTC) #5
rsc
I know we have to do something. Let me mull it overnight. Russ
13 years, 5 months ago (2011-10-03 21:57:11 UTC) #6
rsc
LGTM http://codereview.appspot.com/5162050/diff/5001/src/pkg/exec/exec.go File src/pkg/exec/exec.go (right): http://codereview.appspot.com/5162050/diff/5001/src/pkg/exec/exec.go#newcode68 src/pkg/exec/exec.go:68: // standard error. If non-nil, the first entry ...
13 years, 5 months ago (2011-10-06 17:50:58 UTC) #7
bradfitz
13 years, 5 months ago (2011-10-06 18:00:12 UTC) #8
*** Submitted as http://code.google.com/p/go/source/detail?r=bef8a4920e15 ***

exec: add Command.ExtraFiles

Allows passing extra fds to the child process.

Fixes issue 2329

R=rsc, dsymonds
CC=golang-dev
http://codereview.appspot.com/5162050
Sign in to reply to this message.

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