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

Issue 6351053: code review 6351053: cmd/go: capture SIGQUIT during go run (Closed)

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

Description

cmd/go: capture SIGQUIT during go run Fixes issue 3581.

Patch Set 1 #

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

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

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

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

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

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -0 lines) Patch
M src/cmd/dist/build.c View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/cmd/go/run.go View 1 2 chunks +8 lines, -0 lines 1 comment Download

Messages

Total messages: 5
dave_cheney.net
Hello bradfitz@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go
11 years, 10 months ago (2012-06-29 11:34:53 UTC) #1
dave_cheney.net
Hello bradfitz@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 10 months ago (2012-07-02 02:10:38 UTC) #2
dave_cheney.net
Hello bradfitz@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 9 months ago (2012-07-06 10:24:16 UTC) #3
dave_cheney.net
On 2012/07/06 10:24:16, dfc wrote: > Hello mailto:bradfitz@golang.org (cc: mailto:golang-dev@googlegroups.com), > > Please take another ...
11 years, 9 months ago (2012-07-12 00:08:34 UTC) #4
rsc
11 years, 9 months ago (2012-07-30 00:42:42 UTC) #5
http://codereview.appspot.com/6351053/diff/8003/src/cmd/go/run.go
File src/cmd/go/run.go (right):

http://codereview.appspot.com/6351053/diff/8003/src/cmd/go/run.go#newcode89
src/cmd/go/run.go:89: // capture SIGQUIT so the subprocess can print
I'm confused. Calling signal.Notify here applies to the parent process, not the
subprocess. And then nothing happens with the signal channel. If the goal is
some kind of side effect like the child inheriting a non-default signal handler
for SIGQUIT, that should be made more explicit in the comment, and it should
probably also be done in a func init once for the whole lifetime of the process
instead of each time runStdin is called.

Or if this is only for 'go run', then the 'go run' code can do this instead of
doing it here in a helper function.
Sign in to reply to this message.

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