Home
last modified time | relevance | path

Searched refs:SIGINT (Results 1 - 25 of 439) sorted by relevance

12345678910>>...18

/third_party/python/Lib/unittest/test/
H A Dtest_break.py21 self._default_handler = signal.getsignal(signal.SIGINT)
23 signal.signal(signal.SIGINT, self.int_handler)
26 signal.signal(signal.SIGINT, self._default_handler)
53 default_handler = signal.getsignal(signal.SIGINT)
55 self.assertNotEqual(signal.getsignal(signal.SIGINT), default_handler)
59 os.kill(pid, signal.SIGINT)
78 os.kill(pid, signal.SIGINT)
88 signal.getsignal(signal.SIGINT),
102 if signal.getsignal(signal.SIGINT) == signal.SIG_IGN:
103 self.skipTest("test requires SIGINT t
[all...]
/third_party/rust/crates/nix/test/sys/
H A Dtest_signal.rs30 let oact = unsafe { sigaction(SIGINT, &act) }.unwrap(); in test_old_sigaction_flags()
32 let oact = unsafe { sigaction(SIGINT, &act) }.unwrap(); in test_old_sigaction_flags()
89 SIGNALED.store(signal == Signal::SIGINT, Ordering::Relaxed); in test_sigaction_handler()
107 unsafe { signal(Signal::SIGINT, action_handler) }.unwrap_err(), in test_signal_sigaction()
116 unsafe { signal(Signal::SIGINT, SigHandler::SigIgn) }.unwrap(); in test_signal()
117 raise(Signal::SIGINT).unwrap(); in test_signal()
119 unsafe { signal(Signal::SIGINT, SigHandler::SigDfl) }.unwrap(), in test_signal()
125 unsafe { signal(Signal::SIGINT, handler) }.unwrap(), in test_signal()
128 raise(Signal::SIGINT).unwrap(); in test_signal()
133 unsafe { signal(Signal::SIGINT, SigHandle in test_signal()
[all...]
/third_party/musl/libc-test/src/functionalext/supplement/sigchain/sigchain_gtest/
H A Dsigchain_add_special_signal_handler_test.cpp15 EXPECT_EQ(signo, SIGINT); in SigchainSigint1()
21 EXPECT_EQ(signo, SIGINT); in SigchainSigint2()
28 * special signal handlers when a SIGINT signal is raised.
38 add_special_signal_handler(SIGINT, &sigint1); in HWTEST_F()
45 add_special_signal_handler(SIGINT, &sigint2); in HWTEST_F()
47 raise(SIGINT); in HWTEST_F()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/
H A D28-9.c24 * -> register a signal handler for SIGINT with signal().
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()
H A D22-9.c18 3. (child) Setup a signal handler for SIGINT with SA_NODEFER set
20 4. (child) raise SIGINT
22 6. (child, signal handler) if count is 1 then raise SIGINT
43 printf("SIGINT caught\n"); in handler()
53 printf("Raising SIGINT\n"); in handler()
54 raise(SIGINT); in handler()
55 printf("Returning from raising SIGINT\n"); in handler()
71 if (sigaction(SIGINT, &act, 0) == -1) { in main()
77 if (raise(SIGINT) == -1) { in main()
H A D3-9.c15 2. Set the signal handler for SIGINT to handler
17 4. raise SIGINT
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()
H A D25-9.c17 3. (child) Setup a signal handler for SIGINT
18 4. (child) raise SIGINT
20 6. (child, signal handler) if count is 1 then raise SIGINT
41 printf("SIGINT caught\n"); in handler()
52 printf("Raising SIGINT\n"); in handler()
53 raise(SIGINT); in handler()
54 printf("Returning from raising SIGINT\n"); in handler()
70 if (sigaction(SIGINT, &act, 0) == -1) { in main()
76 if (raise(SIGINT) == -1) { in main()
H A D8-10.c26 printf("Caught SIGINT\n"); in SIGINT_handler()
32 raise(SIGINT); in SIGPIPE_handler()
46 sigaddset(&act.sa_mask, SIGINT); in main()
56 if (sigaction(SIGINT, &act, 0) == -1) { in main()
H A D19-9.c25 * -> register a handler for SIGINT with SA_SIGINFO, and a known function
27 * -> raise SIGINT, and check the function has been called.
50 if (info->si_signo != SIGINT) { in handler()
84 /* Install the signal handler for SIGINT */ in main()
85 ret = sigaction(SIGINT, &sa, 0); in main()
98 ret = raise(SIGINT); in main()
101 perror("Failed to raise SIGINT"); in main()
H A D1-9.c17 2. Use sigaction to setup a signal handler for SIGINT
18 3. Raise SIGINT.
40 if (sigaction(SIGINT, &act, 0) == -1) { in main()
46 if (raise(SIGINT) == -1) { in main()
H A D12-35.c29 printf("Caught SIGINT\n"); in handler()
50 if (sigaction(SIGINT, &act, 0) == -1) { in main()
62 if (raise(SIGINT) == -1) { in main()
/third_party/python/Lib/unittest/
H A Dsignals.py23 raise TypeError("expected SIGINT signal handler to be "
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/selinux/libsepol/cil/test/unit/
H A 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/tests/thirdparty/Fuzzer/
H A DFuzzerUtilDarwin.cpp53 if (sigaction(SIGINT, &IgnoreSignalAction, &OldSigIntAction) == -1) { in ExecuteCommand()
54 Printf("Failed to ignore SIGINT\n"); 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()
132 Printf("Failed to restore SIGINT handling\n"); in ExecuteCommand()
/third_party/ltp/testcases/kernel/syscalls/sigprocmask/
H A Dsigprocmask01.c111 * Call sigprocmask() to block (SIGINT) signal in main()
120 /* Send SIGINT signal to the process */ in main()
121 kill(my_pid, SIGINT); in main()
139 * 'SIGINT' is pending for the process. in main()
154 if (!sigismember(&sigset2, SIGINT)) { in main()
200 * Set the signal handler to catch SIGINT signal.
201 * Add the signal SIGINT to the exclude list of system-defined
228 if (sigaction(SIGINT, &sa_new, 0) == -1) { in setup()
235 * Add specified signal (SIGINT) to the signal set in setup()
238 if (sigaddset(&set, SIGINT) in setup()
[all...]
/third_party/musl/src/process/
H A Dsystem.c25 sigaction(SIGINT, &sa, &oldint); in system()
31 if (oldint.sa_handler != SIG_IGN) sigaddset(&reset, SIGINT); in system()
42 sigaction(SIGINT, &oldint, NULL); in system()
/third_party/musl/porting/liteos_a/user/src/process/
H A 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/ninja/src/
H A Dsubprocess-posix.cc172 if (WTERMSIG(status) == SIGINT || WTERMSIG(status) == SIGTERM in Finish()
200 if (sigismember(&pending, SIGINT)) in HandlePendingInterruption()
201 interrupted_ = SIGINT; in HandlePendingInterruption()
211 sigaddset(&set, SIGINT); in SubprocessSet()
220 if (sigaction(SIGINT, &act, &old_int_act_) < 0) in SubprocessSet()
231 if (sigaction(SIGINT, &old_int_act_, 0) < 0) in ~SubprocessSet()
361 // the interruption signal (i.e. SIGINT or SIGTERM) at the same time as us. in Clear()
/third_party/musl/libc-test/src/functionalext/sigchain/
H A Dsigchain_add_special_handler.c30 EXPECT_EQ("sigchain_add_special_handler_001", signo, SIGINT); in sigchain_special_sigint_handler1()
40 EXPECT_EQ("sigchain_add_special_handler_001", signo, SIGINT); in sigchain_special_sigint_handler2()
57 add_special_signal_handler(SIGINT, &sigint); in sigchain_add_special_handler_001()
64 add_special_signal_handler(SIGINT, &sigint1); in sigchain_add_special_handler_001()
68 int signo[SIGCHIAN_TEST_SIGNAL_NUM_1] = {SIGINT}; in sigchain_add_special_handler_001()
72 raise(SIGINT); in sigchain_add_special_handler_001()
/third_party/python/Lib/asyncio/
H A Drunners.py103 and signal.getsignal(signal.SIGINT) is signal.default_int_handler
107 signal.signal(signal.SIGINT, sigint_handler)
127 and signal.getsignal(signal.SIGINT) is sigint_handler
129 signal.signal(signal.SIGINT, signal.default_int_handler)
/third_party/musl/libc-test/src/regression/
H A Dsigreturn.c14 signal(SIGINT, handler); in main()
15 if (raise(SIGINT)) in main()
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_memory_test/
H A Dcpuset_memory_testset.sh59 /bin/kill -s SIGINT $1
290 /bin/kill -s SIGINT $1
393 /bin/kill -s SIGINT $1
511 /bin/kill -s SIGINT $testpid
567 /bin/kill -s SIGINT $testpid
629 /bin/kill -s SIGINT $testpid
699 /bin/kill -s SIGINT $testpid
781 /bin/kill -s SIGINT $testpid
/third_party/musl/libc-test/src/functionalext/supplement/signal/signal_gtest/
H A Dsignal_sysv_signal_test.cpp14 * for the SIGINT signal.
19 sighandler_t oldHandler = signal(SIGINT, SignalHandler); in HWTEST_F()
22 sighandler_t restoredHandler = signal(SIGINT, oldHandler); in HWTEST_F()
/third_party/lzma/CPP/7zip/UI/Console/
H A DConsoleClose.cpp74 memo_sig_int = signal(SIGINT, HandlerRoutine); // CTRL-C in CCtrlHandlerSetter()
76 throw "SetConsoleCtrlHandler fails (SIGINT)"; in CCtrlHandlerSetter()
84 signal(SIGINT, memo_sig_int); // CTRL-C in ~CCtrlHandlerSetter()
/third_party/ltp/testcases/kernel/syscalls/pause/
H A Dpause01.c16 SAFE_SIGNAL(SIGINT, sig_handler); in do_child()
42 kill(pid, SIGINT); in do_test()

Completed in 10 milliseconds

12345678910>>...18