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

Issue 6297087: code review 6297087: runtime: fix struct Sigaction for Linux/ARM (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 12 months ago by minux1
Modified:
13 years, 11 months ago
Reviewers:
CC:
dave_cheney.net, rsc, golang-dev
Visibility:
Public.

Description

runtime: fix struct Sigaction for Linux/ARM if we were to use sizeof(sa.sa_mask) instead of 8 as the last argument to rt_sigaction, we would have already fixed this bug, so also updated Linux/386 and Linux/amd64 files to use that; also test the return value of rt_sigaction.

Patch Set 1 #

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

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

Total comments: 1

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

Total comments: 3

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -5 lines) Patch
M src/pkg/runtime/defs_linux_arm.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/os_linux.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/signal_linux_386.c View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M src/pkg/runtime/signal_linux_amd64.c View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M src/pkg/runtime/signal_linux_arm.c View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 8
dave_cheney.net
Thanks for fixing this. http://codereview.appspot.com/6297087/diff/1002/src/pkg/runtime/defs_linux_arm.h File src/pkg/runtime/defs_linux_arm.h (right): http://codereview.appspot.com/6297087/diff/1002/src/pkg/runtime/defs_linux_arm.h#newcode146 src/pkg/runtime/defs_linux_arm.h:146: uint64 sa_mask; If sa_mask is ...
13 years, 12 months ago (2012-06-14 21:09:55 UTC) #1
dave_cheney.net
http://codereview.appspot.com/6297087/diff/1002/src/pkg/runtime/defs_linux_arm.h#newcode146 > src/pkg/runtime/defs_linux_arm.h:146: uint64 sa_mask; > If sa_mask is 64bit, then rt_sigaction should use the ...
13 years, 12 months ago (2012-06-14 23:13:11 UTC) #2
minux1
On 2012/06/14 23:13:11, dfc wrote: > Ignore this, sigaction takes a pointer to &sigmask (but ...
13 years, 12 months ago (2012-06-15 09:27:36 UTC) #3
minux1
PTAL. check runtime.rt_sigaction return value in signal_linux_$GOARCH.c.
13 years, 12 months ago (2012-06-15 09:40:00 UTC) #4
dave_cheney.net
On 2012/06/15 09:40:00, minux wrote: > PTAL. > > check runtime.rt_sigaction return value in signal_linux_$GOARCH.c. ...
13 years, 12 months ago (2012-06-15 10:58:38 UTC) #5
rsc
LGTM http://codereview.appspot.com/6297087/diff/1003/src/pkg/runtime/signal_linux_386.c File src/pkg/runtime/signal_linux_386.c (right): http://codereview.appspot.com/6297087/diff/1003/src/pkg/runtime/signal_linux_386.c#newcode133 src/pkg/runtime/signal_linux_386.c:133: runtime·throw("rt_sigaction failure!"); "runtime: rt_sigaction failed" the ! is ...
13 years, 11 months ago (2012-06-19 03:54:06 UTC) #6
minux1
Hello dave@cheney.net, rsc@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
13 years, 11 months ago (2012-06-19 17:16:52 UTC) #7
minux1
13 years, 11 months ago (2012-06-19 17:17:24 UTC) #8
*** Submitted as http://code.google.com/p/go/source/detail?r=6eefce99091e ***

runtime: fix struct Sigaction for Linux/ARM
        if we were to use sizeof(sa.sa_mask) instead of 8 as the last argument
        to rt_sigaction, we would have already fixed this bug, so also updated
        Linux/386 and Linux/amd64 files to use that; also test the return value
        of rt_sigaction.

R=dave, rsc
CC=golang-dev
http://codereview.appspot.com/6297087
Sign in to reply to this message.

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