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

Unified Diff: src/native_client/src/trusted/service_runtime/sel_main.c

Issue 6798008: Add an assertion to check that Chrome/Breakpad does not install a signal handler (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Use %d; amend Windows comment Created 9 years, 8 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
Index: src/native_client/src/trusted/service_runtime/sel_main.c
diff --git a/src/native_client/src/trusted/service_runtime/sel_main.c b/src/native_client/src/trusted/service_runtime/sel_main.c
index b6234f23cacc4bd91424f525a582199d44ce946c..41473e620291ee8e4a0f50471e8db72d203d64fe 100644
--- a/src/native_client/src/trusted/service_runtime/sel_main.c
+++ b/src/native_client/src/trusted/service_runtime/sel_main.c
@@ -503,7 +503,11 @@ int main(int argc,
}
/* Remove the signal handler if we are not using it. */
- if (!handle_signals) NaClSignalHandlerFini();
+ if (!handle_signals) {
+ NaClSignalHandlerFini();
+ /* Sanity check. */
+ NaClSignalAssertNoHandlers();
+ }
/*
* Open both files first because (on Mac OS X at least)

Powered by Google App Engine
This is Rietveld 408576698