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

Side by Side Diff: src/shared/platform/nacl_log.h

Issue 997683002: Exit cleanly for the SRPC "log" requests instead of generating crash reports. (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: run the hook just in case Created 5 years, 9 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/shared/platform/nacl_log.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 /* 7 /*
8 * NaCl logging module. 8 * NaCl logging module.
9 * 9 *
10 * This module is used in many parts of Native Client to generate 10 * This module is used in many parts of Native Client to generate
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 * The function at |fn| is invoked when NaClLog's family of logging 363 * The function at |fn| is invoked when NaClLog's family of logging
364 * functions are invoked with LOG_FATAL. This defaults to NaClAbort 364 * functions are invoked with LOG_FATAL. This defaults to NaClAbort
365 * (see nacl_exit.h), but may be overridden to do other things prior 365 * (see nacl_exit.h), but may be overridden to do other things prior
366 * to aborting. NB: it is not a good idea to depend on too much 366 * to aborting. NB: it is not a good idea to depend on too much
367 * within |fn|, since the application state is likely 367 * within |fn|, since the application state is likely
368 * inconsistent/unstable. It is probably a good idea to only use 368 * inconsistent/unstable. It is probably a good idea to only use
369 * low-level routines or system calls directly. 369 * low-level routines or system calls directly.
370 */ 370 */
371 void NaClLogSetAbortBehavior(void (*fn)(void)); 371 void NaClLogSetAbortBehavior(void (*fn)(void));
372 372
373 /*
374 * Run the current abort behavior hook.
375 */
376 void NaClLogRunAbortBehavior(void);
377
373 EXTERN_C_END 378 EXTERN_C_END
374 379
375 #endif /* NATIVE_CLIENT_SRC_TRUSTED_PLATFORM_NACL_LOG_H__ */ 380 #endif /* NATIVE_CLIENT_SRC_TRUSTED_PLATFORM_NACL_LOG_H__ */
OLDNEW
« no previous file with comments | « no previous file | src/shared/platform/nacl_log.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698