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

Issue 9778048: code review 9778048: os/exec: fix test hang (Closed)

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

Description

os/exec: fix test hang Currently the test closes random files descriptors, which leads to hang (in particular if netpoll fd is closed). Try to open only fd 3, since the parent process expects it to be fd 3 anyway. Fixes issue 5571.

Patch Set 1 #

Patch Set 2 : diff -r e84e7204b01b https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 3 : diff -r e84e7204b01b https://dvyukov%40google.com@code.google.com/p/go/ #

Total comments: 2

Patch Set 4 : diff -r e84e7204b01b https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 5 : diff -r e84e7204b01b https://dvyukov%40google.com@code.google.com/p/go/ #

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

Messages

Total messages: 6
dvyukov
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://dvyukov%40google.com@code.google.com/p/go/
11 years ago (2013-05-28 15:23:44 UTC) #1
r
https://codereview.appspot.com/9778048/diff/5001/src/pkg/os/exec/exec_test.go File src/pkg/os/exec/exec_test.go (right): https://codereview.appspot.com/9778048/diff/5001/src/pkg/os/exec/exec_test.go#newcode543 src/pkg/os/exec/exec_test.go:543: f := os.NewFile(3, fmt.Sprintf("fd-3")) inconsistent: see line 495. i'm ...
11 years ago (2013-05-28 15:27:00 UTC) #2
dvyukov
On 2013/05/28 15:27:00, r wrote: > https://codereview.appspot.com/9778048/diff/5001/src/pkg/os/exec/exec_test.go > File src/pkg/os/exec/exec_test.go (right): > > https://codereview.appspot.com/9778048/diff/5001/src/pkg/os/exec/exec_test.go#newcode543 > ...
11 years ago (2013-05-28 15:36:49 UTC) #3
dvyukov
PTAL https://codereview.appspot.com/9778048/diff/5001/src/pkg/os/exec/exec_test.go File src/pkg/os/exec/exec_test.go (right): https://codereview.appspot.com/9778048/diff/5001/src/pkg/os/exec/exec_test.go#newcode543 src/pkg/os/exec/exec_test.go:543: f := os.NewFile(3, fmt.Sprintf("fd-3")) On 2013/05/28 15:27:00, r ...
11 years ago (2013-05-28 15:36:57 UTC) #4
r
LGTM what a mess
11 years ago (2013-05-28 16:23:48 UTC) #5
dvyukov
11 years ago (2013-05-28 17:09:34 UTC) #6
*** Submitted as https://code.google.com/p/go/source/detail?r=9cc232c5d990 ***

os/exec: fix test hang
Currently the test closes random files descriptors,
which leads to hang (in particular if netpoll fd is closed).
Try to open only fd 3, since the parent process expects it to be fd 3 anyway.
Fixes issue 5571.

R=golang-dev, r
CC=golang-dev
https://codereview.appspot.com/9778048
Sign in to reply to this message.

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