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

Issue 4437091: code review 4437091: os: add Process.Kill and Process.Signal (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years ago by eds
Modified:
12 years, 11 months ago
Reviewers:
CC:
brainman, r, rsc, krasin, iant2, rsc1, r2, golang-dev
Visibility:
Public.

Description

os: add Process.Kill and Process.Signal

Patch Set 1 #

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

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

Total comments: 3

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

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

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

Total comments: 2

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

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

Total comments: 1

Patch Set 9 : diff -r 1ed4cce53a65 https://go.googlecode.com/hg/ #

Patch Set 10 : diff -r 1ed4cce53a65 https://go.googlecode.com/hg/ #

Total comments: 1

Patch Set 11 : diff -r 1ed4cce53a65 https://go.googlecode.com/hg/ #

Patch Set 12 : diff -r 1ed4cce53a65 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -40 lines) Patch
M src/pkg/os/Makefile View 1 2 3 4 5 6 7 8 5 chunks +12 lines, -0 lines 0 comments Download
M src/pkg/os/exec_posix.go View 1 2 3 4 5 6 2 chunks +24 lines, -1 line 0 comments Download
M src/pkg/os/exec_unix.go View 1 2 3 4 5 6 1 chunk +8 lines, -0 lines 0 comments Download
M src/pkg/os/exec_windows.go View 1 2 3 4 5 6 7 8 9 10 1 chunk +11 lines, -1 line 0 comments Download
M src/pkg/os/mkunixsignals.sh View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/os/signal/Makefile View 1 2 3 4 5 6 1 chunk +0 lines, -6 lines 0 comments Download
M src/pkg/os/signal/signal.go View 1 2 3 4 5 6 2 chunks +5 lines, -20 lines 0 comments Download
M src/pkg/os/signal/signal_test.go View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -2 lines 0 comments Download
M src/pkg/syscall/syscall_windows.go View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -6 lines 0 comments Download
M src/pkg/syscall/zsyscall_windows_386.go View 1 2 3 4 chunks +18 lines, -3 lines 0 comments Download
M src/pkg/syscall/ztypes_windows_386.go View 1 2 3 1 chunk +17 lines, -0 lines 0 comments Download

Messages

Total messages: 34
eds
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
13 years ago (2011-05-03 05:55:04 UTC) #1
brainman
LGTM. Thank you. http://codereview.appspot.com/4437091/diff/4001/src/pkg/os/exec_windows.go File src/pkg/os/exec_windows.go (right): http://codereview.appspot.com/4437091/diff/4001/src/pkg/os/exec_windows.go#newcode37 src/pkg/os/exec_windows.go:37: // Terminate requests that the Process ...
13 years ago (2011-05-03 07:51:03 UTC) #2
eds
On Tue, May 3, 2011 at 7:51 PM, <alex.brainman@gmail.com> wrote: > http://codereview.appspot.com/4437091/diff/4001/src/pkg/os/exec_windows.go#newcode37 > src/pkg/os/exec_windows.go:37: // ...
13 years ago (2011-05-03 08:13:05 UTC) #3
brainman
On 2011/05/03 08:13:05, eds wrote: > > I copied the uint32 from GetExitCodeProcess just below. ...
13 years ago (2011-05-03 11:38:43 UTC) #4
r
http://codereview.appspot.com/4437091/diff/4001/src/pkg/os/exec_unix.go File src/pkg/os/exec_unix.go (right): http://codereview.appspot.com/4437091/diff/4001/src/pkg/os/exec_unix.go#newcode58 src/pkg/os/exec_unix.go:58: // action. i think this is a peculiar pair ...
13 years ago (2011-05-03 18:47:05 UTC) #5
eds
On Wed, May 4, 2011 at 6:47 AM, <r@golang.org> wrote: > i think this is ...
13 years ago (2011-05-03 20:37:21 UTC) #6
r2
On May 3, 2011, at 1:37 PM, Evan Shaw wrote: > On Wed, May 4, ...
13 years ago (2011-05-03 21:22:46 UTC) #7
eds
On Wed, May 4, 2011 at 9:22 AM, Rob 'Commander' Pike <r@google.com> wrote: > I ...
13 years ago (2011-05-03 21:31:17 UTC) #8
r2
On May 3, 2011, at 2:31 PM, Evan Shaw wrote: > On Wed, May 4, ...
13 years ago (2011-05-03 21:32:01 UTC) #9
rsc1
There's already a signal.Signal type; maybe it should be moved into os (from os/signal).
13 years ago (2011-05-03 21:32:14 UTC) #10
brainman
On 2011/05/03 21:22:46, r2 wrote: > > I think it makes sense for there to ...
13 years ago (2011-05-03 23:27:18 UTC) #11
eds
Hello golang-dev@googlegroups.com, brainman, r, r2, rsc1 (cc: golang-dev@googlegroups.com), Please take another look.
13 years ago (2011-05-08 07:39:16 UTC) #12
eds
Sorry, I've been slow on this one. I've attempted a compromise: kept Kill, removed Terminate, ...
13 years ago (2011-05-08 07:41:09 UTC) #13
brainman
LGTM. You should change CL description, but, please, wait until all comments are heard. Thank ...
13 years ago (2011-05-08 10:16:14 UTC) #14
eds
Ping. Any thoughts? I've also updated the CL description. - Evan
12 years, 11 months ago (2011-05-22 01:30:35 UTC) #15
krasin
(just a side comment) http://codereview.appspot.com/4437091/diff/20001/src/pkg/os/exec_windows.go File src/pkg/os/exec_windows.go (right): http://codereview.appspot.com/4437091/diff/20001/src/pkg/os/exec_windows.go#newcode35 src/pkg/os/exec_windows.go:35: e := syscall.TerminateProcess(int32(p.handle), 137) Where ...
12 years, 11 months ago (2011-05-26 17:21:04 UTC) #16
rsc
http://codereview.appspot.com/4437091/diff/20001/src/pkg/os/exec_unix.go File src/pkg/os/exec_unix.go (right): http://codereview.appspot.com/4437091/diff/20001/src/pkg/os/exec_unix.go#newcode48 src/pkg/os/exec_unix.go:48: // Signal sends a signal to the Process. Please ...
12 years, 11 months ago (2011-05-26 17:25:26 UTC) #17
eds
On Fri, May 27, 2011 at 5:21 AM, <krasin@google.com> wrote: > http://codereview.appspot.com/4437091/diff/20001/src/pkg/os/exec_windows.go#newcode35 > src/pkg/os/exec_windows.go:35: e ...
12 years, 11 months ago (2011-05-26 20:55:19 UTC) #18
eds
On Fri, May 27, 2011 at 5:25 AM, <rsc@golang.org> wrote: > Please take the types ...
12 years, 11 months ago (2011-05-26 20:57:22 UTC) #19
rsc
It's an interface because it can be different concrete type on different systems, not because ...
12 years, 11 months ago (2011-05-26 21:01:10 UTC) #20
iant2
Evan Shaw <chickencha@gmail.com> writes: > On Fri, May 27, 2011 at 5:21 AM, <krasin@google.com> wrote: ...
12 years, 11 months ago (2011-05-26 21:21:43 UTC) #21
eds
On Fri, May 27, 2011 at 9:21 AM, Ian Lance Taylor <iant@google.com> wrote: > Essentially ...
12 years, 11 months ago (2011-05-26 21:46:33 UTC) #22
rsc1
1 would be better than 137.
12 years, 11 months ago (2011-05-26 21:56:16 UTC) #23
eds
Hello alex.brainman@gmail.com, r@golang.org, rsc@golang.org, krasin@google.com, iant@google.com, rsc@google.com (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 11 months ago (2011-05-27 22:03:18 UTC) #24
rsc
LGTM http://codereview.appspot.com/4437091/diff/37002/src/pkg/os/exec_windows.go File src/pkg/os/exec_windows.go (right): http://codereview.appspot.com/4437091/diff/37002/src/pkg/os/exec_windows.go#newcode32 src/pkg/os/exec_windows.go:32: switch sig.(UnixSignal) { Eventually this should be windows ...
12 years, 11 months ago (2011-06-03 17:02:32 UTC) #25
rsc1
Please hg sync/hg mail
12 years, 11 months ago (2011-06-03 17:05:07 UTC) #26
eds
Hello alex.brainman@gmail.com, r@golang.org, rsc@golang.org, krasin@google.com, iant@google.com, rsc@google.com (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 11 months ago (2011-06-06 05:30:46 UTC) #27
brainman
http://codereview.appspot.com/4437091/diff/39012/src/pkg/os/exec_windows.go File src/pkg/os/exec_windows.go (right): http://codereview.appspot.com/4437091/diff/39012/src/pkg/os/exec_windows.go#newcode34 src/pkg/os/exec_windows.go:34: // exit with 137 since that's what Unix would ...
12 years, 11 months ago (2011-06-06 06:13:34 UTC) #28
eds
Hello alex.brainman@gmail.com, r@golang.org, rsc@golang.org, krasin@google.com, iant@google.com, rsc@google.com (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 11 months ago (2011-06-06 06:19:46 UTC) #29
brainman
LGTM
12 years, 11 months ago (2011-06-06 06:21:52 UTC) #30
r2
signal_test.go:17: undefined: SIGHUP signal_test.go:18: undefined: SIGHUP building on darwin amd64
12 years, 11 months ago (2011-06-06 07:01:16 UTC) #31
eds
Hello alex.brainman@gmail.com, r@golang.org, rsc@golang.org, krasin@google.com, iant@google.com, rsc@google.com, r@google.com (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 11 months ago (2011-06-06 08:36:27 UTC) #32
r
LGTM although i expect trouble. one way to find out.
12 years, 11 months ago (2011-06-06 09:50:25 UTC) #33
r
12 years, 11 months ago (2011-06-06 09:53:36 UTC) #34
*** Submitted as http://code.google.com/p/go/source/detail?r=e37dcab517b1 ***

os: add Process.Kill and Process.Signal

R=alex.brainman, r, rsc, krasin, iant, rsc, r
CC=golang-dev
http://codereview.appspot.com/4437091

Committer: Rob Pike <r@golang.org>
Sign in to reply to this message.

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