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

Issue 5673077: code review 5673077: os: replace non-portable Waitmsg with portable ProcessState (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 2 months ago by r
Modified:
12 years, 2 months ago
Reviewers:
rsc
CC:
golang-dev, bradfitz, bradfitzgoog, r2, dsymonds, rsc1, iant, iant2
Visibility:
Public.

Description

os: replace non-portable Waitmsg with portable ProcessState Use methods for key questions. Provide access to non-portable pieces through portable methods. Windows and Plan 9 updated.

Patch Set 1 #

Total comments: 4

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

Total comments: 8

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

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

Total comments: 4

Patch Set 5 : diff -r 7a899d8d9e4e https://code.google.com/p/go/ #

Total comments: 1

Patch Set 6 : diff -r 7a899d8d9e4e https://code.google.com/p/go/ #

Patch Set 7 : diff -r 50e6a3d8f061 https://code.google.com/p/go/ #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+161 lines, -61 lines) Patch
M src/cmd/cgo/util.go View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M src/cmd/godoc/main.go View 1 2 3 4 2 chunks +5 lines, -3 lines 0 comments Download
M src/pkg/os/exec/exec.go View 1 2 4 chunks +8 lines, -8 lines 0 comments Download
M src/pkg/os/exec_plan9.go View 1 2 3 4 chunks +58 lines, -10 lines 0 comments Download
M src/pkg/os/exec_posix.go View 1 2 3 4 2 chunks +47 lines, -24 lines 1 comment Download
M src/pkg/os/exec_unix.go View 1 2 3 4 5 2 chunks +21 lines, -7 lines 0 comments Download
M src/pkg/os/exec_windows.go View 1 2 3 4 3 chunks +16 lines, -3 lines 0 comments Download
M src/pkg/os/os_test.go View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 22
r
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
12 years, 2 months ago (2012-02-17 03:36:24 UTC) #1
bradfitz
This is half the battle. The other half is http://code.google.com/p/go/issues/detail?id=2823 ... that the "options int" ...
12 years, 2 months ago (2012-02-17 03:42:14 UTC) #2
bradfitzgoog
http://codereview.appspot.com/5673077/diff/1/src/pkg/os/exec_posix.go File src/pkg/os/exec_posix.go (right): http://codereview.appspot.com/5673077/diff/1/src/pkg/os/exec_posix.go#newcode89 src/pkg/os/exec_posix.go:89: func (p *ProcessState) SysTime() time.Duration { SystemTime might be ...
12 years, 2 months ago (2012-02-17 03:45:19 UTC) #3
r2
On Feb 17, 2012, at 2:45 PM, bradfitz@google.com wrote: > > http://codereview.appspot.com/5673077/diff/1/src/pkg/os/exec_posix.go > File src/pkg/os/exec_posix.go ...
12 years, 2 months ago (2012-02-17 03:47:02 UTC) #4
r
Hello golang-dev@googlegroups.com, bradfitz@golang.org, bradfitz@google.com, r@google.com (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 2 months ago (2012-02-17 03:47:43 UTC) #5
dsymonds
Looks nice to me. http://codereview.appspot.com/5673077/diff/1/src/pkg/os/exec_posix.go File src/pkg/os/exec_posix.go (right): http://codereview.appspot.com/5673077/diff/1/src/pkg/os/exec_posix.go#newcode53 src/pkg/os/exec_posix.go:53: // ProcessState stores information about ...
12 years, 2 months ago (2012-02-17 03:50:57 UTC) #6
rsc1
Nice. http://codereview.appspot.com/5673077/diff/5001/src/pkg/os/exec_posix.go File src/pkg/os/exec_posix.go (right): http://codereview.appspot.com/5673077/diff/5001/src/pkg/os/exec_posix.go#newcode65 src/pkg/os/exec_posix.go:65: // Exited returns whether the program has exited. ...
12 years, 2 months ago (2012-02-17 03:59:32 UTC) #7
iant
http://codereview.appspot.com/5673077/diff/5001/src/pkg/os/exec_posix.go File src/pkg/os/exec_posix.go (right): http://codereview.appspot.com/5673077/diff/5001/src/pkg/os/exec_posix.go#newcode65 src/pkg/os/exec_posix.go:65: // Exited returns whether the program has exited. This ...
12 years, 2 months ago (2012-02-17 04:17:32 UTC) #8
r2
On Feb 17, 2012, at 3:17 PM, iant@golang.org wrote: > > http://codereview.appspot.com/5673077/diff/5001/src/pkg/os/exec_posix.go > File src/pkg/os/exec_posix.go ...
12 years, 2 months ago (2012-02-17 04:34:23 UTC) #9
rsc1
On Thu, Feb 16, 2012 at 23:34, Rob 'Commander' Pike <r@google.com> wrote: > Can't it? ...
12 years, 2 months ago (2012-02-17 04:40:23 UTC) #10
iant2
FYI Rob 'Commander' Pike <r@google.com> writes: > On Feb 17, 2012, at 3:17 PM, iant@golang.org ...
12 years, 2 months ago (2012-02-17 04:49:10 UTC) #11
r
Hello golang-dev@googlegroups.com, bradfitz@golang.org, bradfitz@google.com, r@google.com, dsymonds@golang.org, rsc@google.com, iant@golang.org, iant@google.com (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 2 months ago (2012-02-21 02:13:13 UTC) #12
bradfitz
http://codereview.appspot.com/5673077/diff/10009/src/cmd/godoc/main.go File src/cmd/godoc/main.go (right): http://codereview.appspot.com/5673077/diff/10009/src/cmd/godoc/main.go#newcode114 src/cmd/godoc/main.go:114: log.Printf("executing %v failed (exit status = %d)", args, status) ...
12 years, 2 months ago (2012-02-21 02:20:24 UTC) #13
r
Hello golang-dev@googlegroups.com, bradfitz@golang.org, bradfitz@google.com, r@google.com, dsymonds@golang.org, rsc@google.com, iant@golang.org, iant@google.com (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 2 months ago (2012-02-21 02:50:05 UTC) #14
bradfitz
http://codereview.appspot.com/5673077/diff/10010/src/pkg/os/exec_unix.go File src/pkg/os/exec_unix.go (right): http://codereview.appspot.com/5673077/diff/10010/src/pkg/os/exec_unix.go#newcode23 src/pkg/os/exec_unix.go:23: pid1, e := syscall.Wait4(p.Pid, &status, 0, nil) I thought ...
12 years, 2 months ago (2012-02-21 02:54:22 UTC) #15
r
Hello golang-dev@googlegroups.com, bradfitz@golang.org, bradfitz@google.com, r@google.com, dsymonds@golang.org, rsc@google.com, iant@golang.org, iant@google.com (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 2 months ago (2012-02-21 03:01:50 UTC) #16
bradfitz
LGTM
12 years, 2 months ago (2012-02-21 03:07:51 UTC) #17
bradfitz
I assume you'll be updating go1.tmpl at some point.
12 years, 2 months ago (2012-02-21 03:08:10 UTC) #18
r2
On Feb 21, 2012, at 2:08 PM, bradfitz@golang.org wrote: > I assume you'll be updating ...
12 years, 2 months ago (2012-02-21 03:10:05 UTC) #19
r
*** Submitted as cc7630ccd586 *** os: replace non-portable Waitmsg with portable ProcessState Use methods for ...
12 years, 2 months ago (2012-02-21 03:10:38 UTC) #20
rsc
http://codereview.appspot.com/5673077/diff/14004/src/pkg/os/exec_posix.go File src/pkg/os/exec_posix.go (right): http://codereview.appspot.com/5673077/diff/14004/src/pkg/os/exec_posix.go#newcode48 src/pkg/os/exec_posix.go:48: status *syscall.WaitStatus // System-dependent status info. I know I ...
12 years, 2 months ago (2012-02-22 17:42:18 UTC) #21
r2
12 years, 2 months ago (2012-02-22 20:37:51 UTC) #22
On 23/02/2012, at 4:42 AM, rsc@golang.org wrote:

> 
> http://codereview.appspot.com/5673077/diff/14004/src/pkg/os/exec_posix.go
> File src/pkg/os/exec_posix.go (right):
> 
>
http://codereview.appspot.com/5673077/diff/14004/src/pkg/os/exec_posix.go#new...
> src/pkg/os/exec_posix.go:48: status *syscall.WaitStatus //
> System-dependent status info.
> I know I am late to this but I suspect that this should not be a
> pointer.  The status is a single word on Unix and the methods are on the
> value.  There hasn't been a weekly yet so we can still fix this.
> 
> http://coderevi

roger wilco
Sign in to reply to this message.

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