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

Issue 5986044: code review 5986044: os/exec: close all internal descriptors when Cmd.Start(...

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 11 months ago by bdd
Modified:
12 years, 10 months ago
Reviewers:
iant
CC:
golang-dev, iant, bradfitz
Visibility:
Public.

Description

os/exec: close all internal descriptors when Cmd.Start() fails. This closes any internal descriptors (pipes, etc) that Cmd.Start() had opened before it failed. Fixes issue 3468.

Patch Set 1 #

Patch Set 2 : diff -r 2df358bf7445 https://code.google.com/p/go/ #

Patch Set 3 : diff -r 2df358bf7445 https://code.google.com/p/go/ #

Total comments: 4

Patch Set 4 : diff -r 97d027b3aa68 https://code.google.com/p/go/ #

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

Messages

Total messages: 6
bdd
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
12 years, 11 months ago (2012-04-05 01:50:16 UTC) #1
iant
http://codereview.appspot.com/5986044/diff/3001/src/pkg/os/exec/exec.go File src/pkg/os/exec/exec.go (right): http://codereview.appspot.com/5986044/diff/3001/src/pkg/os/exec/exec.go#newcode210 src/pkg/os/exec/exec.go:210: all = -1 Perhaps all = afterStart|afterWait. http://codereview.appspot.com/5986044/diff/3001/src/pkg/os/exec/exec.go#newcode213 src/pkg/os/exec/exec.go:213: ...
12 years, 11 months ago (2012-04-20 20:41:10 UTC) #2
bradfitz
http://codereview.appspot.com/5986044/diff/3001/src/pkg/os/exec/exec.go File src/pkg/os/exec/exec.go (right): http://codereview.appspot.com/5986044/diff/3001/src/pkg/os/exec/exec.go#newcode210 src/pkg/os/exec/exec.go:210: all = -1 On 2012/04/20 20:41:10, iant wrote: > ...
12 years, 11 months ago (2012-04-20 20:46:42 UTC) #3
bdd
Hello golang-dev@googlegroups.com, iant@golang.org, bradfitz@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 10 months ago (2012-04-24 01:12:40 UTC) #4
iant
LGTM
12 years, 10 months ago (2012-04-27 17:21:02 UTC) #5
iant
12 years, 10 months ago (2012-04-27 22:46:53 UTC) #6
*** Submitted as http://code.google.com/p/go/source/detail?r=9d046474e95a ***

os/exec: close all internal descriptors when Cmd.Start() fails.

This closes any internal descriptors (pipes, etc) that Cmd.Start() had
opened before it failed.

Fixes issue 3468.

R=golang-dev, iant, bradfitz
CC=golang-dev
http://codereview.appspot.com/5986044

Committer: Ian Lance Taylor <iant@golang.org>
Sign in to reply to this message.

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