/third_party/python/Lib/unittest/test/ |
D | test_break.py | 17 self._default_handler = signal.getsignal(signal.SIGINT) 19 signal.signal(signal.SIGINT, self.int_handler) 22 signal.signal(signal.SIGINT, self._default_handler) 28 default_handler = signal.getsignal(signal.SIGINT) 30 self.assertNotEqual(signal.getsignal(signal.SIGINT), default_handler) 34 os.kill(pid, signal.SIGINT) 51 default_handler = signal.getsignal(signal.SIGINT) 57 self.assertNotEqual(signal.getsignal(signal.SIGINT), default_handler) 61 os.kill(pid, signal.SIGINT) 75 if signal.getsignal(signal.SIGINT) == signal.SIG_IGN: [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/src/events/ |
D | SDL_quit.c | 56 sigaction(SIGINT, NULL, &action); 63 sigaction(SIGINT, &action, NULL); 79 ohandler = signal(SIGINT, SDL_HandleSIG); 81 signal(SIGINT, ohandler); 105 sigaction(SIGINT, NULL, &action); 108 sigaction(SIGINT, &action, NULL); 118 ohandler = signal(SIGINT, SIG_DFL); 120 signal(SIGINT, ohandler);
|
/third_party/python/Lib/unittest/ |
D | signals.py | 29 installed_handler = signal.getsignal(signal.SIGINT) 52 default_handler = signal.getsignal(signal.SIGINT) 54 signal.signal(signal.SIGINT, _interrupt_handler) 61 initial = signal.getsignal(signal.SIGINT) 66 signal.signal(signal.SIGINT, initial) 71 signal.signal(signal.SIGINT, _interrupt_handler.original_handler)
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/ |
D | 28-9.c | 63 if (signal(SIGINT, handler_1) == SIG_ERR) { in main() 83 ret = sigaction(SIGINT, &sa, &save); in main() 91 ret = raise(SIGINT); in main() 104 ret = sigaction(SIGINT, &save, 0); in main() 112 ret = raise(SIGINT); in main()
|
D | 3-9.c | 40 if (sigaction(SIGINT, &act, 0) == -1) { in main() 46 if (sigaction(SIGINT, 0, &oact) == -1) { in main() 52 if (raise(SIGINT) == -1) { in main()
|
D | 22-9.c | 54 raise(SIGINT); in handler() 71 if (sigaction(SIGINT, &act, 0) == -1) { in main() 77 if (raise(SIGINT) == -1) { in main()
|
D | 25-9.c | 53 raise(SIGINT); in handler() 70 if (sigaction(SIGINT, &act, 0) == -1) { in main() 76 if (raise(SIGINT) == -1) { in main()
|
D | 8-10.c | 32 raise(SIGINT); in SIGPIPE_handler() 46 sigaddset(&act.sa_mask, SIGINT); in main() 56 if (sigaction(SIGINT, &act, 0) == -1) { in main()
|
D | 19-9.c | 50 if (info->si_signo != SIGINT) { in handler() 85 ret = sigaction(SIGINT, &sa, 0); in main() 98 ret = raise(SIGINT); in main()
|
D | 1-9.c | 40 if (sigaction(SIGINT, &act, 0) == -1) { in main() 46 if (raise(SIGINT) == -1) { in main()
|
D | 6-9.c | 38 if (sigaction(SIGINT, &act, 0) == -1) { in main() 44 if (raise(SIGINT) == -1) { in main()
|
D | 2-9.c | 40 if (sigaction(SIGINT, &act, 0) == -1) { in main() 48 if (sigaction(SIGINT, &act, &oact) == -1) { in main()
|
D | 4-9.c | 54 if (sigaction(SIGINT, &act, 0) == -1) { in main() 60 if (raise(SIGINT) == -1) { in main()
|
/third_party/e2fsprogs/lib/ss/ |
D | list_rqs.c | 42 sigaddset(&igmask, SIGINT); in ss_list_requests() 44 func = signal(SIGINT, SIG_IGN); in ss_list_requests() 48 (void) signal(SIGINT, func); in ss_list_requests() 55 (void) signal(SIGINT, func); in ss_list_requests() 91 (void) signal(SIGINT, func); in ss_list_requests()
|
D | listen.c | 45 signal(SIGINT, listen_int_handler); in listen_int_handler() 65 sigaddset(&igmask, SIGINT); in ss_listen() 68 sig_int = signal(SIGINT, listen_int_handler); in ss_listen() 124 (void) signal(SIGINT, sig_int); in ss_listen()
|
/third_party/selinux/libsepol/cil/test/unit/ |
D | test_integration.c | 45 if (WIFSIGNALED(status) && (WTERMSIG(status) == SIGINT || WTERMSIG(status) == SIGQUIT)) in test_integration() 50 if (WIFSIGNALED(status1) && (WTERMSIG(status1) == SIGINT || WTERMSIG(status1) == SIGQUIT)) in test_integration() 55 if (WIFSIGNALED(status2) && (WTERMSIG(status2) == SIGINT || WTERMSIG(status2) == SIGQUIT)) in test_integration() 71 if (WIFSIGNALED(status) && (WTERMSIG(status) == SIGINT || WTERMSIG(status) == SIGQUIT)) in test_min_policy()
|
/third_party/json/test/thirdparty/Fuzzer/ |
D | FuzzerUtilDarwin.cpp | 53 if (sigaction(SIGINT, &IgnoreSignalAction, &OldSigIntAction) == -1) { in ExecuteCommand() 61 (void)sigaction(SIGINT, &OldSigIntAction, NULL); in ExecuteCommand() 73 (void)sigaction(SIGINT, &OldSigIntAction, NULL); in ExecuteCommand() 90 (void)sigaddset(&DefaultSigSet, SIGINT); in ExecuteCommand() 131 if (sigaction(SIGINT, &OldSigIntAction, NULL) == -1) { in ExecuteCommand()
|
/third_party/ltp/testcases/kernel/syscalls/sigprocmask/ |
D | sigprocmask01.c | 121 kill(my_pid, SIGINT); in main() 154 if (!sigismember(&sigset2, SIGINT)) { in main() 228 if (sigaction(SIGINT, &sa_new, 0) == -1) { in setup() 238 if (sigaddset(&set, SIGINT) == -1) { in setup()
|
/third_party/mindspore/mindspore/ccsrc/utils/ |
D | signal_util.cc | 30 (void)sigaction(SIGINT, &int_action, nullptr); in ~SignalGuard() 37 (void)sigaction(SIGINT, nullptr, &old_int_action); in RegisterHandlers() 45 (void)sigaction(SIGINT, &int_action, nullptr); in RegisterHandlers()
|
/third_party/musl/src/process/ |
D | system.c | 23 sigaction(SIGINT, &sa, &oldint); in system() 29 if (oldint.sa_handler != SIG_IGN) sigaddset(&reset, SIGINT); in system() 40 sigaction(SIGINT, &oldint, NULL); in system()
|
/third_party/musl/porting/liteos_a/user/src/process/ |
D | system.c | 26 sigaction(SIGINT, &sa, &oldint); in system() 32 if (oldint.sa_handler != SIG_IGN) sigaddset(&reset, SIGINT); in system() 43 sigaction(SIGINT, &oldint, NULL); in system()
|
/third_party/musl/libc-test/src/regression/ |
D | sigreturn.c | 14 signal(SIGINT, handler); in main() 15 if (raise(SIGINT)) in main()
|
/third_party/python/Lib/test/ |
D | test_signal.py | 72 self.assertIn("Interrupt", signal.strsignal(signal.SIGINT)) 85 self.assertIn(signal.Signals.SIGINT, s) 101 self.assertEqual(process.returncode, -signal.SIGINT) 115 self.assertIn(signal.Signals.SIGINT, s) 125 signal.SIGILL, signal.SIGINT, signal.SIGSEGV, 161 signal.set_wakeup_fd(signum=signal.SIGINT) 165 signal.set_wakeup_fd(signal.SIGINT, False) 1327 signal.raise_signal(signal.SIGINT) 1346 old_signal = signal.signal(signal.SIGINT, handler) 1347 self.addCleanup(signal.signal, signal.SIGINT, old_signal) [all …]
|
/third_party/ninja/src/ |
D | subprocess-posix.cc | 160 if (WTERMSIG(status) == SIGINT || WTERMSIG(status) == SIGTERM in Finish() 188 if (sigismember(&pending, SIGINT)) in HandlePendingInterruption() 189 interrupted_ = SIGINT; in HandlePendingInterruption() 199 sigaddset(&set, SIGINT); in SubprocessSet() 208 if (sigaction(SIGINT, &act, &old_int_act_) < 0) in SubprocessSet() 219 if (sigaction(SIGINT, &old_int_act_, 0) < 0) in ~SubprocessSet()
|
/third_party/grpc/third_party/rake-compiler-dock/build/ |
D | sigfw.c | 22 kill(pid, SIGINT); in handle_sigint() 34 sigaction (SIGINT, &new_action, (void*)0); in main()
|