Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
4aaf948f
Commit
4aaf948f
authored
Nov 19, 2009
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runtime: mask signals during signal handler on OS X
Fixes #265. R=r CC=golang-dev
https://golang.org/cl/157084
parent
5fd4f768
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
signal.c
src/pkg/runtime/darwin/386/signal.c
+1
-1
signal.c
src/pkg/runtime/darwin/amd64/signal.c
+1
-1
No files found.
src/pkg/runtime/darwin/386/signal.c
View file @
4aaf948f
...
...
@@ -83,7 +83,7 @@ initsig(void)
static
Sigaction
sa
;
sa
.
sa_flags
|=
SA_SIGINFO
|
SA_ONSTACK
;
sa
.
sa_mask
=
0
;
// 0
xFFFFFFFFU;
sa
.
sa_mask
=
0xFFFFFFFFU
;
sa
.
sa_tramp
=
sigtramp
;
// sigtramp's job is to call into real handler
for
(
i
=
0
;
i
<
NSIG
;
i
++
)
{
if
(
sigtab
[
i
].
flags
)
{
...
...
src/pkg/runtime/darwin/amd64/signal.c
View file @
4aaf948f
...
...
@@ -91,7 +91,7 @@ initsig(void)
static
Sigaction
sa
;
sa
.
sa_flags
|=
SA_SIGINFO
|
SA_ONSTACK
;
sa
.
sa_mask
=
0
;
// 0
xFFFFFFFFU;
sa
.
sa_mask
=
0xFFFFFFFFU
;
sa
.
sa_tramp
=
sigtramp
;
// sigtramp's job is to call into real handler
for
(
i
=
0
;
i
<
NSIG
;
i
++
)
{
if
(
sigtab
[
i
].
flags
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment