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

Unified Diff: src/trusted/service_runtime/nacl_secure_service.c

Issue 11189140: Report exit status in debug stub, if tab is closed in chrome. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: Created 8 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/service_runtime/nacl_secure_service.c
===================================================================
--- src/trusted/service_runtime/nacl_secure_service.c (revision 10072)
+++ src/trusted/service_runtime/nacl_secure_service.c (working copy)
@@ -101,7 +101,13 @@
}
if (0 == --self->conn_count) {
NaClLog(4, "NaClSecureServiceThread: all channels closed, exiting.\n");
- NaClExit(0);
+ /*
+ * Set exit code for application. This wakes up main thread and
+ * application will terminate gracefully there. This is needed to allow
+ * debug stub to send exit status to debugger. This way we can detect
+ * normal NaCl module exit in tests.
+ */
+ NaClReportExitStatus(self->nap, 0);
}
NaClXMutexUnlock(&self->mu);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698