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

Issue 4689043: code review 4689043: os: don't permit Process.Signal after a successful Wait (Closed)

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

Description

os: don't permit Process.Signal after a successful Wait

Patch Set 1 #

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

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

Total comments: 1

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

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

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

Messages

Total messages: 10
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, 10 months ago (2011-07-11 22:12:36 UTC) #1
dsymonds
What if you wait with WNOHANG? That can return with the process still executing. Dave.
13 years, 10 months ago (2011-07-11 22:31:17 UTC) #2
bradfitz
On Mon, Jul 11, 2011 at 3:30 PM, David Symonds <dsymonds@golang.org> wrote: > What if ...
13 years, 10 months ago (2011-07-11 22:33:44 UTC) #3
rsc
david is right but meant wstopped http://codereview.appspot.com/4689043/diff/4001/src/pkg/os/exec_unix.go File src/pkg/os/exec_unix.go (right): http://codereview.appspot.com/4689043/diff/4001/src/pkg/os/exec_unix.go#newcode41 src/pkg/os/exec_unix.go:41: p.done = true ...
13 years, 10 months ago (2011-07-11 22:36:53 UTC) #4
bradfitz
Hello dsymonds@golang.org, rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 10 months ago (2011-07-11 22:40:26 UTC) #5
bradfitz
Learn something new every day. Never seen WSTOPPED. On Mon, Jul 11, 2011 at 3:36 ...
13 years, 10 months ago (2011-07-11 22:40:41 UTC) #6
rsc
LGTM
13 years, 10 months ago (2011-07-11 22:42:33 UTC) #7
bradfitz
*** Submitted as http://code.google.com/p/go/source/detail?r=f4dbaa62bdf9 *** os: don't permit Process.Signal after a successful Wait R=dsymonds, rsc ...
13 years, 10 months ago (2011-07-11 22:47:46 UTC) #8
iant2
Brad Fitzpatrick <bradfitz@golang.org> writes: > Learn something new every day. Never seen WSTOPPED. WSTOPPED == ...
13 years, 10 months ago (2011-07-11 23:23:04 UTC) #9
bradfitz
13 years, 10 months ago (2011-07-11 23:24:31 UTC) #10
On Mon, Jul 11, 2011 at 4:22 PM, Ian Lance Taylor <iant@google.com> wrote:

> Brad Fitzpatrick <bradfitz@golang.org> writes:
>
> > Learn something new every day.  Never seen WSTOPPED.
>
> WSTOPPED == WUNTRACED.
>

You should've saved that for tomorrow. Now I've learned two things in a
single day.
Sign in to reply to this message.

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