Home
last modified time | relevance | path

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

12345678910>>...25

/third_party/python/Lib/unittest/test/
Dtest_break.py17 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/
DSDL_quit.c56 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/
Dsignals.py29 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/
D28-9.c63 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()
D3-9.c40 if (sigaction(SIGINT, &act, 0) == -1) { in main()
46 if (sigaction(SIGINT, 0, &oact) == -1) { in main()
52 if (raise(SIGINT) == -1) { in main()
D22-9.c54 raise(SIGINT); in handler()
71 if (sigaction(SIGINT, &act, 0) == -1) { in main()
77 if (raise(SIGINT) == -1) { in main()
D25-9.c53 raise(SIGINT); in handler()
70 if (sigaction(SIGINT, &act, 0) == -1) { in main()
76 if (raise(SIGINT) == -1) { in main()
D8-10.c32 raise(SIGINT); in SIGPIPE_handler()
46 sigaddset(&act.sa_mask, SIGINT); in main()
56 if (sigaction(SIGINT, &act, 0) == -1) { in main()
D19-9.c50 if (info->si_signo != SIGINT) { in handler()
85 ret = sigaction(SIGINT, &sa, 0); in main()
98 ret = raise(SIGINT); in main()
D1-9.c40 if (sigaction(SIGINT, &act, 0) == -1) { in main()
46 if (raise(SIGINT) == -1) { in main()
D6-9.c38 if (sigaction(SIGINT, &act, 0) == -1) { in main()
44 if (raise(SIGINT) == -1) { in main()
D2-9.c40 if (sigaction(SIGINT, &act, 0) == -1) { in main()
48 if (sigaction(SIGINT, &act, &oact) == -1) { in main()
D4-9.c54 if (sigaction(SIGINT, &act, 0) == -1) { in main()
60 if (raise(SIGINT) == -1) { in main()
/third_party/e2fsprogs/lib/ss/
Dlist_rqs.c42 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()
Dlisten.c45 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/
Dtest_integration.c45 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/
DFuzzerUtilDarwin.cpp53 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/
Dsigprocmask01.c121 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/
Dsignal_util.cc30 (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/
Dsystem.c23 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/
Dsystem.c26 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/
Dsigreturn.c14 signal(SIGINT, handler); in main()
15 if (raise(SIGINT)) in main()
/third_party/python/Lib/test/
Dtest_signal.py72 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/
Dsubprocess-posix.cc160 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/
Dsigfw.c22 kill(pid, SIGINT); in handle_sigint()
34 sigaction (SIGINT, &new_action, (void*)0); in main()

12345678910>>...25