Lines Matching defs:handler

596 		ExecuteSignalHandler(uint32 signal, struct sigaction* handler)
599 fHandler((void*)handler->sa_handler)
606 out.Print("signal exec handler: signal: %" B_PRIu32 " (%s), "
607 "handler: %p", fSignal, signal_name(fSignal), fHandler);
654 "action: {handler: %p, flags: %#x, mask: %#" B_PRIx64 "}",
800 \param handler The installed signal handler for the signal.
806 notify_debugger(Thread* thread, Signal* signal, struct sigaction& handler,
836 return user_debug_handle_signal(signal->Number(), &handler, &info, deadly);
898 // handler function
900 frameData.handler = frameData.siginfo_handler
924 signal handler is prepared, or whatever the signal demands.
1013 struct sigaction handler;
1015 handler = team->SignalActionFor(signal->Number());
1017 handler.sa_handler = SIG_DFL;
1018 handler.sa_flags = 0;
1021 if ((handler.sa_flags & SA_ONESHOT) != 0
1022 && handler.sa_handler != SIG_IGN && handler.sa_handler != SIG_DFL) {
1040 if (handler.sa_handler == SIG_IGN) {
1046 notify_debugger(thread, signal, handler, false);
1048 } else if (handler.sa_handler == SIG_DFL) {
1056 notify_debugger(thread, signal, handler, false);
1067 notify_debugger(thread, signal, handler, false);
1076 // set up the signal handler
1077 handler.sa_handler = thread->cancel_function;
1078 handler.sa_flags = 0;
1079 handler.sa_mask = 0;
1080 handler.sa_userdata = NULL;
1095 && !notify_debugger(thread, signal, handler, false))
1120 && !notify_debugger(thread, signal, handler, false))
1200 && !notify_debugger(thread, signal, handler, true)) {
1238 // User defined signal handler
1241 if (debugSignal && !notify_debugger(thread, signal, handler, false))
1245 || (!alwaysRestart && (handler.sa_flags & SA_RESTART) == 0)) {
1249 T(ExecuteSignalHandler(signal->Number(), &handler));
1251 TRACE(("### Setting up custom signal handler frame...\n"));
1253 // save the old block mask -- we may need to adjust it for the handler
1260 // Update the block mask while the signal handler is running -- it
1262 thread->sig_block_mask |= handler.sa_mask & BLOCKABLE_SIGNALS;
1264 if ((handler.sa_flags & SA_NOMASK) == 0) {
1273 setup_signal_frame(thread, &handler, signal, oldBlockMask);
1277 // accordingly so that after the handler returns the thread's signal
2186 // a signal handler, or restart the syscall, if there wasn't anything to
2458 handler call.
2459 This syscall is invoked when a signal handler function returns. It
2460 deconstructs the signal handler frame and restores the stack and register
2469 handler. Potentially some data (e.g. registers) have been modified by
2470 the signal handler.