Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
50312b2f
Commit
50312b2f
authored
Dec 04, 2013
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runtime: Use pthread_sigmask instead of sigprocmask.
From-SVN: r205652
parent
49248404
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
libgo/runtime/go-signal.c
+1
-1
libgo/runtime/proc.c
+2
-2
libgo/runtime/runtime.c
+1
-1
No files found.
libgo/runtime/go-signal.c
View file @
50312b2f
...
...
@@ -252,7 +252,7 @@ sig_panic_leadin (int sig)
/* The signal handler blocked signals; unblock them. */
i
=
sigfillset
(
&
clear
);
__go_assert
(
i
==
0
);
i
=
sigproc
mask
(
SIG_UNBLOCK
,
&
clear
,
NULL
);
i
=
pthread_sig
mask
(
SIG_UNBLOCK
,
&
clear
,
NULL
);
__go_assert
(
i
==
0
);
}
...
...
libgo/runtime/proc.c
View file @
50312b2f
...
...
@@ -208,9 +208,9 @@ runtime_newosproc(M *mp)
#endif
sigemptyset
(
&
old
);
sigproc
mask
(
SIG_BLOCK
,
&
clear
,
&
old
);
pthread_sig
mask
(
SIG_BLOCK
,
&
clear
,
&
old
);
ret
=
pthread_create
(
&
tid
,
&
attr
,
runtime_mstart
,
mp
);
sigproc
mask
(
SIG_SETMASK
,
&
old
,
nil
);
pthread_sig
mask
(
SIG_SETMASK
,
&
old
,
nil
);
if
(
ret
!=
0
)
runtime_throw
(
"pthread_create"
);
...
...
libgo/runtime/runtime.c
View file @
50312b2f
...
...
@@ -256,7 +256,7 @@ runtime_minit(void)
runtime_signalstack
(
m
->
gsignalstack
,
m
->
gsignalstacksize
);
if
(
sigemptyset
(
&
sigs
)
!=
0
)
runtime_throw
(
"sigemptyset"
);
sigproc
mask
(
SIG_SETMASK
,
&
sigs
,
nil
);
pthread_sig
mask
(
SIG_SETMASK
,
&
sigs
,
nil
);
}
// Called from dropm to undo the effect of an minit.
...
...
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