Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(455)

Unified Diff: src/trusted/service_runtime/posix/nacl_signal.c

Issue 10441152: Debug stub: suspend/resume threads on Linux Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/trusted/service_runtime/linux/thread_suspension.c ('k') | src/trusted/service_runtime/sel_ldr.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/service_runtime/posix/nacl_signal.c
diff --git a/src/trusted/service_runtime/posix/nacl_signal.c b/src/trusted/service_runtime/posix/nacl_signal.c
index 3db69150c3795273cea68a11416af15502262b9f..c6ff123aa50fb7637b1859e58d4e825fec6708e3 100644
--- a/src/trusted/service_runtime/posix/nacl_signal.c
+++ b/src/trusted/service_runtime/posix/nacl_signal.c
@@ -357,7 +357,9 @@ void NaClSignalHandlerInitPlatform() {
/* Mask all exceptions we catch to prevent re-entry */
for (a = 0; a < NACL_ARRAY_SIZE(s_Signals); a++) {
- sigaddset(&sa.sa_mask, s_Signals[a]);
+ if (s_Signals[a] != NACL_THREAD_SUSPEND_SIGNAL) {
+ sigaddset(&sa.sa_mask, s_Signals[a]);
+ }
}
/* Install all handlers */
« no previous file with comments | « src/trusted/service_runtime/linux/thread_suspension.c ('k') | src/trusted/service_runtime/sel_ldr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698