Home
last modified time | relevance | path

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

/third_party/mindspore/mindspore/ccsrc/utils/
Dsignal_util.cc26 if (old_handler != nullptr) { in ~SignalGuard()
27 int_action.sa_sigaction = old_handler; in ~SignalGuard()
31 old_handler = nullptr; in ~SignalGuard()
40 old_handler = old_int_action.sa_sigaction; in RegisterHandlers()
Dsignal_util.h30 void (*old_handler)(int, siginfo_t *, void *) = nullptr; variable
/third_party/protobuf/src/google/protobuf/stubs/
Dcommon_unittest.cc105 LogHandler* old_handler = SetLogHandler(nullptr); in TEST() local
112 EXPECT_TRUE(SetLogHandler(old_handler) == nullptr); 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()
/third_party/ltp/lib/
Dtst_virt.c117 void *old_handler = signal(SIGCHLD, SIG_DFL); in try_systemd_detect_virt() local
121 signal(SIGCHLD, old_handler); in try_systemd_detect_virt()
130 signal(SIGCHLD, old_handler); in try_systemd_detect_virt()
Dtst_cmd.c69 void *old_handler = signal(SIGCHLD, SIG_DFL); in tst_cmd_fds_() local
110 signal(SIGCHLD, old_handler); in tst_cmd_fds_()
184 void *old_handler = signal(SIGCHLD, SIG_DFL); in tst_system() local
188 signal(SIGCHLD, old_handler); in tst_system()
/third_party/python/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.py1144 old_handler = signal.signal(signum, handler)
1145 self.addCleanup(signal.signal, signum, old_handler)
1290 old_handler = signal.signal(signum, custom_handler)
1291 self.addCleanup(signal.signal, signum, old_handler)
D_test_eintr.py391 old_handler = signal.signal(signum, lambda *args: None)
392 self.addCleanup(signal.signal, signum, old_handler)
Dtest_threading.py1604 old_handler = signal.signal(signum, handler)
1605 self.addCleanup(signal.signal, signum, old_handler)
Dtest_subprocess.py1482 old_handler = signal.signal(signal.SIGUSR1, handler)
1483 self.addCleanup(signal.signal, signal.SIGUSR1, old_handler)
2273 old_handler = signal.signal(signal.SIGINT, signal.default_int_handler)
2286 signal.signal(signal.SIGINT, old_handler)
D_test_multiprocessing.py432 old_handler = signal.signal(signal.SIGALRM, handler)
438 signal.signal(signal.SIGALRM, old_handler)
/third_party/mesa3d/src/mesa/drivers/x11/
Dxm_buffer.c74 int (*old_handler)(XMesaDisplay *, XErrorEvent *); in alloc_back_shm_ximage() local
118 old_handler = XSetErrorHandler(mesaHandleXError); in alloc_back_shm_ximage()
132 (void) XSetErrorHandler(old_handler); in alloc_back_shm_ximage()
144 (void) XSetErrorHandler(old_handler); in alloc_back_shm_ximage()
452 int (*old_handler)(XMesaDisplay *, XErrorEvent *); in xmesa_MapRenderbuffer() local
461 old_handler = XSetErrorHandler(mesaHandleXError); in xmesa_MapRenderbuffer()
468 XSetErrorHandler(old_handler); in xmesa_MapRenderbuffer()
Dxm_api.c218 int (*old_handler)( XMesaDisplay*, XErrorEvent* ); in window_exists() local
220 old_handler = XSetErrorHandler(window_exists_err_handler); in window_exists()
222 XSetErrorHandler(old_handler); in window_exists()
/third_party/python/Modules/
Dsignalmodule.c494 PyObject *old_handler; in signal_signal_impl() local
553 old_handler = get_handler(signalnum); in signal_signal_impl()
556 if (old_handler != NULL) { in signal_signal_impl()
557 return old_handler; in signal_signal_impl()
584 PyObject *old_handler; in signal_getsignal_impl() local
590 old_handler = get_handler(signalnum); in signal_getsignal_impl()
591 if (old_handler != NULL) { in signal_getsignal_impl()
592 return Py_NewRef(old_handler); in signal_getsignal_impl()
/third_party/boost/libs/math/reporting/performance/
Dtable_helper.hpp38 gsl_error_handler_t * old_handler; member
41 old_handler = gsl_set_error_handler(gsl_handler); in gsl_error_handler_setter()
45 gsl_set_error_handler(old_handler); in ~gsl_error_handler_setter()
/third_party/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()
/third_party/mesa3d/src/gallium/winsys/sw/xlib/
Dxlib_sw_winsys.c160 int (*old_handler)(Display *, XErrorEvent *); in alloc_shm_ximage() local
177 old_handler = XSetErrorHandler(handle_xerror); in alloc_shm_ximage()
194 (void) XSetErrorHandler(old_handler); in alloc_shm_ximage()
/third_party/gstreamer/gstplugins_bad/ext/mpeg2enc/
Dgstmpeg2enc.cc751 static mjpeg_log_handler_t old_handler = NULL; variable
790 old_handler (level, message); in gst_mpeg2enc_log_callback()
798 old_handler = mjpeg_log_set_handler (gst_mpeg2enc_log_callback); in mpeg2enc_element_init()
799 g_assert (old_handler != NULL); in mpeg2enc_element_init()
/third_party/gstreamer/gstplugins_bad/ext/mplex/
Dgstmplex.cc763 static mjpeg_log_handler_t old_handler = NULL; variable
802 old_handler (level, message); in gst_mplex_log_callback()
810 old_handler = mjpeg_log_set_handler (gst_mplex_log_callback); in mplex_element_init()
811 g_assert (old_handler != NULL); in mplex_element_init()
/third_party/boost/libs/math/reporting/accuracy/
Dbindings.hpp129 gsl_error_handler_t * old_handler; member
132 old_handler = gsl_set_error_handler(gsl_handler); in gsl_error_handler_setter()
136 gsl_set_error_handler(old_handler); in ~gsl_error_handler_setter()
/third_party/gstreamer/gstreamer/gst/
Dgstbus.c731 SyncHandler *old_handler, *new_handler = NULL; in gst_bus_set_sync_handler() local
744 old_handler = g_steal_pointer (&bus->priv->sync_handler); in gst_bus_set_sync_handler()
748 g_clear_pointer (&old_handler, sync_handler_unref); in gst_bus_set_sync_handler()
/third_party/mesa3d/src/glx/
Ddrisw_glx.c76 int (*old_handler)(Display *, XErrorEvent *); in XCreateDrawable() local
81 old_handler = XSetErrorHandler(handle_xerror); in XCreateDrawable()
92 (void) XSetErrorHandler(old_handler); in XCreateDrawable()
/third_party/mesa3d/src/gallium/frontends/glx/xlib/
Dxm_api.c348 int (*old_handler)( Display*, XErrorEvent* ); in window_exists() local
350 old_handler = XSetErrorHandler(window_exists_err_handler); in window_exists()
352 XSetErrorHandler(old_handler); in window_exists()
/third_party/python/Lib/test/test_asyncio/
Dtest_subprocess.py202 old_handler = signal.signal(signal.SIGHUP, signal.SIG_DFL)
225 signal.signal(signal.SIGHUP, old_handler)
Dtest_events.py1887 old_handler = signal.signal(signal.SIGHUP, signal.SIG_DFL)
1905 signal.signal(signal.SIGHUP, old_handler)