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

Issue 5674072: code review 5674072: runtime: Permit default behaviour of SIGTSTP, SIGTTIN, ... (Closed)

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

Description

runtime: Permit default behaviour of SIGTSTP, SIGTTIN, SIGTTOU. Fixes issue 3037.

Patch Set 1 #

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

Total comments: 5

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

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

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

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

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

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

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

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

Total comments: 4

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -20 lines) Patch
M src/pkg/runtime/runtime.h View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -3 lines 0 comments Download
M src/pkg/runtime/signal_plan9_386.c View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M src/pkg/runtime/signal_unix.c View 1 2 3 4 5 6 7 8 9 10 1 chunk +20 lines, -2 lines 0 comments Download
M src/pkg/runtime/signal_windows_386.c View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M src/pkg/runtime/signal_windows_amd64.c View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M src/pkg/runtime/signals_darwin.h View 1 3 chunks +5 lines, -3 lines 0 comments Download
M src/pkg/runtime/signals_freebsd.h View 1 3 chunks +5 lines, -3 lines 0 comments Download
M src/pkg/runtime/signals_linux.h View 1 3 chunks +5 lines, -3 lines 0 comments Download
M src/pkg/runtime/signals_netbsd.h View 1 3 chunks +5 lines, -3 lines 0 comments Download
M src/pkg/runtime/signals_openbsd.h View 1 3 chunks +5 lines, -3 lines 0 comments Download
M src/pkg/runtime/sigqueue.goc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 22
rsc
LGTM http://codereview.appspot.com/5674072/diff/2001/src/pkg/runtime/signal_unix.c File src/pkg/runtime/signal_unix.c (right): http://codereview.appspot.com/5674072/diff/2001/src/pkg/runtime/signal_unix.c#newcode30 src/pkg/runtime/signal_unix.c:30: if((t->flags == 0) || (t->flags & SigDefault)) { ...
13 years, 10 months ago (2012-02-16 19:15:09 UTC) #1
minux1
http://codereview.appspot.com/5674072/diff/2001/src/pkg/runtime/sigqueue.goc File src/pkg/runtime/sigqueue.goc (right): http://codereview.appspot.com/5674072/diff/2001/src/pkg/runtime/sigqueue.goc#newcode144 src/pkg/runtime/sigqueue.goc:144: if(runtime·sigtab[i].flags & SigDefault) You have to declare runtime·sigtab[] in ...
13 years, 10 months ago (2012-02-16 19:27:33 UTC) #2
dsymonds
Hello rsc@golang.org, minux.ma@gmail.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 (2012-02-16 21:11:57 UTC) #3
dsymonds
http://codereview.appspot.com/5674072/diff/2001/src/pkg/runtime/signal_unix.c File src/pkg/runtime/signal_unix.c (right): http://codereview.appspot.com/5674072/diff/2001/src/pkg/runtime/signal_unix.c#newcode30 src/pkg/runtime/signal_unix.c:30: if((t->flags == 0) || (t->flags & SigDefault)) { On ...
13 years, 10 months ago (2012-02-16 21:13:17 UTC) #4
rsc
> I clearly don't, since this compiles just fine. ;-) you should put extern SigTab ...
13 years, 10 months ago (2012-02-16 21:14:23 UTC) #5
dsymonds
On Fri, Feb 17, 2012 at 8:14 AM, <rsc@golang.org> wrote: >> I clearly don't, since ...
13 years, 10 months ago (2012-02-16 21:15:35 UTC) #6
rsc
Actually, I have no idea why the C compiler would allow this code. I can't ...
13 years, 10 months ago (2012-02-16 21:15:47 UTC) #7
rsc
http://codereview.appspot.com/5674072/diff/2001/src/pkg/runtime/sigqueue.goc File src/pkg/runtime/sigqueue.goc (right): http://codereview.appspot.com/5674072/diff/2001/src/pkg/runtime/sigqueue.goc#newcode144 src/pkg/runtime/sigqueue.goc:144: if(runtime·sigtab[i].flags & SigDefault) On 2012/02/16 21:13:17, dsymonds wrote: > ...
13 years, 10 months ago (2012-02-16 21:18:41 UTC) #8
dsymonds
On Fri, Feb 17, 2012 at 8:18 AM, <rsc@golang.org> wrote: > Also, this is supposed ...
13 years, 10 months ago (2012-02-16 21:29:08 UTC) #9
rsc
On Thu, Feb 16, 2012 at 16:29, David Symonds <dsymonds@golang.org> wrote: > SigTab is in ...
13 years, 10 months ago (2012-02-16 21:36:57 UTC) #10
dsymonds
PTAL
13 years, 10 months ago (2012-02-16 22:11:09 UTC) #11
dsymonds
wait, I'm getting a panic in the os/signal test.
13 years, 10 months ago (2012-02-16 22:18:21 UTC) #12
dsymonds
Okay, ready for a final review. I need to use ~0 as the sentinel to ...
13 years, 10 months ago (2012-02-16 23:20:02 UTC) #13
dsymonds
No, wait. It isn't. Darn.
13 years, 10 months ago (2012-02-16 23:22:40 UTC) #14
rsc
> No, wait. It isn't. Darn. Thanks for slogging through it. Welcome to signals.
13 years, 10 months ago (2012-02-16 23:44:11 UTC) #15
dsymonds
Okay, it's good to go now. Turns out that calling runtime·setsig on a signal the ...
13 years, 10 months ago (2012-02-17 01:55:34 UTC) #16
r
Fixes issue 3037?
13 years, 10 months ago (2012-02-17 02:03:48 UTC) #17
dsymonds
On Fri, Feb 17, 2012 at 1:03 PM, <r@golang.org> wrote: > Fixes issue 3037? Yep.
13 years, 10 months ago (2012-02-17 02:05:13 UTC) #18
rsc1
http://codereview.appspot.com/5674072/diff/7024/src/pkg/runtime/signal_unix.c File src/pkg/runtime/signal_unix.c (right): http://codereview.appspot.com/5674072/diff/7024/src/pkg/runtime/signal_unix.c#newcode46 src/pkg/runtime/signal_unix.c:46: if(t->flags & SigDefault) You should probably clear SigDefault here ...
13 years, 10 months ago (2012-02-17 02:47:16 UTC) #19
dsymonds
PTAL http://codereview.appspot.com/5674072/diff/7024/src/pkg/runtime/signal_unix.c File src/pkg/runtime/signal_unix.c (right): http://codereview.appspot.com/5674072/diff/7024/src/pkg/runtime/signal_unix.c#newcode46 src/pkg/runtime/signal_unix.c:46: if(t->flags & SigDefault) On 2012/02/17 02:47:16, rsc1 wrote: ...
13 years, 10 months ago (2012-02-17 03:23:56 UTC) #20
rsc1
LGTM
13 years, 10 months ago (2012-02-17 03:25:43 UTC) #21
dsymonds
13 years, 10 months ago (2012-02-17 03:36:46 UTC) #22
*** Submitted as http://code.google.com/p/go/source/detail?r=8ff98919d8a9 ***

runtime: Permit default behaviour of SIGTSTP, SIGTTIN, SIGTTOU.

Fixes issue 3037.

R=rsc, minux.ma, r, rsc
CC=golang-dev
http://codereview.appspot.com/5674072
Sign in to reply to this message.

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