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

Issue 6514043: code review 6514043: os/exec: don't crash when out of fds (Closed)

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

Description

os/exec: don't crash when out of fds Command.Start could crash before if no fds were available because a nil *os.File of /dev/null was added to the cleanup list, which crashed before returning the proper error.

Patch Set 1 #

Patch Set 2 : diff -r 8df0b8f89db3 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 8df0b8f89db3 https://go.googlecode.com/hg/ #

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

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

Messages

Total messages: 3
bradfitz
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
11 years, 7 months ago (2012-09-14 19:03:01 UTC) #1
iant2
LGTM On Fri, Sep 14, 2012 at 12:03 PM, <bradfitz@golang.org> wrote: > Reviewers: golang-dev_googlegroups.com, > ...
11 years, 7 months ago (2012-09-14 19:38:55 UTC) #2
bradfitz
11 years, 7 months ago (2012-09-14 20:40:42 UTC) #3
*** Submitted as http://code.google.com/p/go/source/detail?r=00e1feaa9218 ***

os/exec: don't crash when out of fds

Command.Start could crash before if no fds were available
because a nil *os.File of /dev/null was added to the cleanup
list, which crashed before returning the proper error.

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

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