Home
last modified time | relevance | path

Searched refs:old_handler (Results 1 – 25 of 25) sorted by relevance

/external/ltp/lib/
Dtst_run_cmd.c56 void *old_handler = signal(SIGCHLD, SIG_DFL); in tst_run_cmd_fds_() local
90 signal(SIGCHLD, old_handler); in tst_run_cmd_fds_()
165 void *old_handler = signal(SIGCHLD, SIG_DFL); in tst_system() local
169 signal(SIGCHLD, old_handler); in tst_system()
Dtst_virt.c74 void *old_handler = signal(SIGCHLD, SIG_DFL); in try_systemd_detect_virt() local
78 signal(SIGCHLD, old_handler); in try_systemd_detect_virt()
87 signal(SIGCHLD, old_handler); in try_systemd_detect_virt()
/external/protobuf/src/google/protobuf/stubs/
Dcommon_unittest.cc105 LogHandler* old_handler = SetLogHandler(NULL); in TEST() local
112 EXPECT_TRUE(SetLogHandler(old_handler) == NULL); in TEST()
121 LogHandler* old_handler = SetLogHandler(&CaptureLog); in TEST() local
127 EXPECT_TRUE(SetLogHandler(old_handler) == &CaptureLog); in TEST()
141 LogHandler* old_handler = SetLogHandler(&CaptureLog); in TEST() local
153 EXPECT_TRUE(SetLogHandler(old_handler) == &CaptureLog); in TEST()
/external/python/cpython2/Modules/
Dsignalmodule.c267 PyObject *old_handler; in signal_signal() local
321 old_handler = Handlers[sig_num].func; in signal_signal()
324 if (old_handler != NULL) in signal_signal()
325 return old_handler; in signal_signal()
346 PyObject *old_handler; in signal_getsignal() local
354 old_handler = Handlers[sig_num].func; in signal_getsignal()
355 if (old_handler != NULL) { in signal_getsignal()
356 Py_INCREF(old_handler); in signal_getsignal()
357 return old_handler; in signal_getsignal()
/external/mesa3d/src/mesa/drivers/x11/
Dxm_buffer.c73 int (*old_handler)(XMesaDisplay *, XErrorEvent *); in alloc_back_shm_ximage() local
116 old_handler = XSetErrorHandler(mesaHandleXError); in alloc_back_shm_ximage()
130 (void) XSetErrorHandler(old_handler); in alloc_back_shm_ximage()
142 (void) XSetErrorHandler(old_handler); in alloc_back_shm_ximage()
449 int (*old_handler)(XMesaDisplay *, XErrorEvent *); in xmesa_MapRenderbuffer() local
458 old_handler = XSetErrorHandler(mesaHandleXError); in xmesa_MapRenderbuffer()
465 XSetErrorHandler(old_handler); in xmesa_MapRenderbuffer()
Dxm_api.c217 int (*old_handler)( XMesaDisplay*, XErrorEvent* ); in window_exists() local
219 old_handler = XSetErrorHandler(window_exists_err_handler); in window_exists()
221 XSetErrorHandler(old_handler); in window_exists()
/external/python/cpython3/Lib/test/
Dtest_threadsignals.py153 old_handler = signal.signal(signal.SIGUSR1, my_handler)
178 signal.signal(signal.SIGUSR1, old_handler)
203 old_handler = signal.signal(signal.SIGUSR1, my_handler)
230 signal.signal(signal.SIGUSR1, old_handler)
Dtest_signal.py1056 old_handler = signal.signal(signum, handler)
1057 self.addCleanup(signal.signal, signum, old_handler)
Dtest_subprocess.py1335 old_handler = signal.signal(signal.SIGUSR1, handler)
1336 self.addCleanup(signal.signal, signal.SIGUSR1, old_handler)
1898 old_handler = signal.signal(signal.SIGINT, signal.default_int_handler)
1911 signal.signal(signal.SIGINT, old_handler)
D_test_multiprocessing.py339 old_handler = signal.signal(signal.SIGALRM, handler)
345 signal.signal(signal.SIGALRM, old_handler)
/external/google-breakpad/src/client/solaris/handler/
Dexception_handler.cc200 SignalHandler old_handler = in HandleException() local
202 if (old_handler != NULL) in HandleException()
203 old_handler(signo); in HandleException()
/external/python/cpython3/Modules/
Dsignalmodule.c405 PyObject *old_handler; in signal_signal_impl() local
455 old_handler = Handlers[signalnum].func; in signal_signal_impl()
458 if (old_handler != NULL) in signal_signal_impl()
459 return old_handler; in signal_signal_impl()
484 PyObject *old_handler; in signal_getsignal_impl() local
490 old_handler = Handlers[signalnum].func; in signal_getsignal_impl()
491 if (old_handler != NULL) { in signal_getsignal_impl()
492 Py_INCREF(old_handler); in signal_getsignal_impl()
493 return old_handler; in signal_getsignal_impl()
/external/perfetto/src/base/
Ddebug_crash_stack_trace.cc61 struct sigaction old_handler; member
111 sigaction(g_signals[i].sig_num, &g_signals[i].old_handler, nullptr); in RestoreSignalHandlers()
253 sigaction(g_signals[i].sig_num, &sigact, &g_signals[i].old_handler); in SignalHandler()
/external/autotest/client/common_lib/cros/
Dretry.py111 old_handler = signal.getsignal(signal.SIGALRM)
136 if install_sigalarm_handler(old_handler) and old_timeout_time:
/external/mesa3d/src/glx/apple/
Dapple_glx_drawable.c368 int (*old_handler) (Display *, XErrorEvent *); in apple_glx_garbage_collect_drawables() local
374 old_handler = XSetErrorHandler(error_handler); in apple_glx_garbage_collect_drawables()
420 XSetErrorHandler(old_handler); in apple_glx_garbage_collect_drawables()
/external/v8/src/ic/
Dstub-cache.cc81 MaybeObject* old_handler = primary->value; in Set() local
85 if (old_handler != MaybeObject::FromObject( in Set()
/external/mesa3d/src/gallium/winsys/sw/xlib/
Dxlib_sw_winsys.c159 int (*old_handler)(Display *, XErrorEvent *); in alloc_shm_ximage() local
176 old_handler = XSetErrorHandler(handle_xerror); in alloc_shm_ximage()
193 (void) XSetErrorHandler(old_handler); in alloc_shm_ximage()
/external/perfetto/tools/
Dheap_profile247 old_handler = signal.signal(signal.SIGINT, sigint_handler)
258 signal.signal(signal.SIGINT, old_handler)
/external/python/cpython3/Lib/test/eintrdata/
Deintr_tester.py394 old_handler = signal.signal(signum, lambda *args: None)
395 self.addCleanup(signal.signal, signum, old_handler)
/external/autotest/utils/
Dloadtest.py434 old_handler = signal.signal(signal.SIGUSR1, self.signal_handler)
454 signal.signal(signal.SIGUSR1, old_handler)
/external/mesa3d/src/gallium/state_trackers/glx/xlib/
Dxm_api.c343 int (*old_handler)( Display*, XErrorEvent* ); in window_exists() local
345 old_handler = XSetErrorHandler(window_exists_err_handler); in window_exists()
347 XSetErrorHandler(old_handler); in window_exists()
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_subprocess.py192 old_handler = signal.signal(signal.SIGHUP, signal.SIG_DFL)
213 signal.signal(signal.SIGHUP, old_handler)
Dtest_events.py1980 old_handler = signal.signal(signal.SIGHUP, signal.SIG_DFL)
1996 signal.signal(signal.SIGHUP, old_handler)
/external/google-breakpad/src/client/linux/handler/
Dexception_handler_unittest.cc400 sighandler_t old_handler = signal(SIGSEGV, SIG_DFL); in TEST() local
401 ASSERT_NE(reinterpret_cast<void*>(old_handler), in TEST()
403 ASSERT_NE(reinterpret_cast<void*>(signal(SIGSEGV, old_handler)), in TEST()
/external/python/cpython2/Lib/test/
Dtest_subprocess.py837 old_handler = signal.signal(signal.SIGALRM, handler)
838 self.addCleanup(signal.signal, signal.SIGALRM, old_handler)