Home
last modified time | relevance | path

Searched refs:SIGKILL (Results 1 - 25 of 341) sorted by relevance

12345678910>>...14

/third_party/node/test/parallel/
H A Dtest-child-process-spawnsync-kill-signal.js12 const { SIGKILL } = require('os').constants.signals;
47 const child = spawn('SIGKILL', (opts) => {
48 assert.strictEqual(opts.killSignal, SIGKILL);
51 assert.strictEqual(child.signal, 'SIGKILL');
56 assert.strictEqual(typeof SIGKILL, 'number');
58 const child = spawn(SIGKILL, (opts) => {
59 assert.strictEqual(opts.killSignal, SIGKILL);
62 assert.strictEqual(child.signal, 'SIGKILL');
/third_party/ltp/testcases/kernel/syscalls/signal/
H A Dsignal01.c12 * Test SIGKILL for these items:
13 * 1. SIGKILL can not be set to be ignored, errno:EINVAL (POSIX).
14 * 2. SIGKILL can not be reset to default, errno:EINVAL (POSIX).
15 * 3. SIGKILL can not be set to be caught, errno:EINVAL (POSIX).
16 * 4. SIGKILL can not be ignored.
17 * 5. SIGKILL is reset to default failed but processed by default.
18 * 6. SIGKILL can not be caught.
52 signal(SIGKILL, tc->sighandler); in do_test()
56 TST_EXP_FAIL2((long)signal(SIGKILL, tc->sighandler), EINVAL); in do_test()
66 SAFE_KILL(pid, SIGKILL); in do_test()
70 TST_EXP_EQ_SSZ(WTERMSIG(res), SIGKILL); do_test() local
[all...]
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/
H A D30-1.c24 * -> Try setting a signal handler for SIGKILL
27 * -> Try ignoring SIGKILL
128 /* Install the signal handler for SIGKILL */ in main()
130 output("Trying to catch unauthorized signal SIGKILL (%d)\n", SIGKILL); in main()
133 ret = sigaction(SIGKILL, &sa, 0); in main()
136 FAILED("Setting handler for SIGKILL did not fail"); in main()
164 /* Ingrore SIGKILL */ in main()
166 output("Trying to ignore unauthorized signal SIGKILL (%d)\n", SIGKILL); in main()
[all...]
H A D4-11.c10 that attempting to add SIGKILL can not be added to the signal mask
16 3. (child) Setup a signal handler for SIGQUIT with SIGKILL added to
19 5. (child, signal handler) raise SIGKILL
34 raise(SIGKILL); in handler()
53 sigaddset(&act.sa_mask, SIGKILL); in main()
H A D4-12.c10 that attempting to add SIGKILL can not be added to the signal mask
16 3. (child) Setup a signal handler for SIGSEGV with SIGKILL added to
19 5. (child, signal handler) raise SIGKILL
34 raise(SIGKILL); in handler()
53 sigaddset(&act.sa_mask, SIGKILL); in main()
H A D4-13.c10 that attempting to add SIGKILL can not be added to the signal mask
16 3. (child) Setup a signal handler for SIGTERM with SIGKILL added to
19 5. (child, signal handler) raise SIGKILL
34 raise(SIGKILL); in handler()
53 sigaddset(&act.sa_mask, SIGKILL); in main()
H A D4-14.c10 that attempting to add SIGKILL can not be added to the signal mask
16 3. (child) Setup a signal handler for SIGTSTP with SIGKILL added to
19 5. (child, signal handler) raise SIGKILL
34 raise(SIGKILL); in handler()
53 sigaddset(&act.sa_mask, SIGKILL); in main()
H A D4-15.c10 that attempting to add SIGKILL can not be added to the signal mask
16 3. (child) Setup a signal handler for SIGTTIN with SIGKILL added to
19 5. (child, signal handler) raise SIGKILL
34 raise(SIGKILL); in handler()
53 sigaddset(&act.sa_mask, SIGKILL); in main()
H A D4-16.c10 that attempting to add SIGKILL can not be added to the signal mask
16 3. (child) Setup a signal handler for SIGTTOU with SIGKILL added to
19 5. (child, signal handler) raise SIGKILL
34 raise(SIGKILL); in handler()
53 sigaddset(&act.sa_mask, SIGKILL); in main()
H A D4-24.c10 that attempting to add SIGKILL can not be added to the signal mask
16 3. (child) Setup a signal handler for SIGVTALRM with SIGKILL added to
19 5. (child, signal handler) raise SIGKILL
34 raise(SIGKILL); in handler()
53 sigaddset(&act.sa_mask, SIGKILL); in main()
H A D4-17.c10 that attempting to add SIGKILL can not be added to the signal mask
16 3. (child) Setup a signal handler for SIGUSR1 with SIGKILL added to
19 5. (child, signal handler) raise SIGKILL
34 raise(SIGKILL); in handler()
53 sigaddset(&act.sa_mask, SIGKILL); in main()
H A D4-18.c10 that attempting to add SIGKILL can not be added to the signal mask
16 3. (child) Setup a signal handler for SIGUSR2 with SIGKILL added to
19 5. (child, signal handler) raise SIGKILL
34 raise(SIGKILL); in handler()
53 sigaddset(&act.sa_mask, SIGKILL); in main()
H A D4-19.c10 that attempting to add SIGKILL can not be added to the signal mask
16 3. (child) Setup a signal handler for SIGUSR2 with SIGKILL added to
19 5. (child, signal handler) raise SIGKILL
34 raise(SIGKILL); in handler()
53 sigaddset(&act.sa_mask, SIGKILL); in main()
H A D4-20.c10 that attempting to add SIGKILL can not be added to the signal mask
16 3. (child) Setup a signal handler for SIGPROF with SIGKILL added to
19 5. (child, signal handler) raise SIGKILL
34 raise(SIGKILL); in handler()
53 sigaddset(&act.sa_mask, SIGKILL); in main()
H A D4-22.c10 that attempting to add SIGKILL can not be added to the signal mask
16 3. (child) Setup a signal handler for SIGTRAP with SIGKILL added to
19 5. (child, signal handler) raise SIGKILL
34 raise(SIGKILL); in handler()
53 sigaddset(&act.sa_mask, SIGKILL); in main()
H A D4-21.c10 that attempting to add SIGKILL can not be added to the signal mask
16 3. (child) Setup a signal handler for SIGSYS with SIGKILL added to
19 5. (child, signal handler) raise SIGKILL
34 raise(SIGKILL); in handler()
53 sigaddset(&act.sa_mask, SIGKILL); in main()
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_hotplug_test/
H A Dcpuset_hotplug_test.sh150 /bin/kill -s SIGKILL $tst_pid
158 /bin/kill -s SIGKILL $tst_pid
177 /bin/kill -s SIGKILL $tst_pid
185 /bin/kill -s SIGKILL $tst_pid
205 /bin/kill -s SIGKILL $tst_pid > /dev/null 2>&1
/third_party/ltp/testcases/kernel/syscalls/pipe/
H A Dpipe04.c157 if (kill(c1pid, SIGKILL) == -1) in main()
160 if (kill(c2pid, SIGKILL) == -1) in main()
175 if (wtstatus != SIGKILL) in main()
185 WTERMSIG(wtstatus) != SIGKILL) in main()
/third_party/ltp/testcases/kernel/syscalls/pause/
H A Dpause03.c21 * pause() does not return due to receipt of SIGKILL signal and specified
70 kill(cpid, SIGKILL); in main()
74 if (WIFSIGNALED(status) && WTERMSIG(status) == SIGKILL) { in main()
75 tst_resm(TPASS, "pause() did not return after SIGKILL"); in main()
112 kill(cpid, SIGKILL); in cleanup()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_timedsend/
H A D5-1.c114 kill(pid, SIGKILL); //kill child in main()
121 kill(pid, SIGKILL); //kill child in main()
132 kill(pid, SIGKILL); //kill child in main()
H A D5-2.c122 kill(pid, SIGKILL); //kill child if not gone in main()
130 kill(pid, SIGKILL); //kill child if not gone in main()
136 kill(pid, SIGKILL); //kill child if not gone in main()
/third_party/ltp/testcases/kernel/syscalls/kill/
H A Dkill02.c240 if (kill(pid1, SIGKILL) == -1 in main()
255 if (kill(pid1, SIGKILL) == -1 && errno != ESRCH) { in main()
477 if (kill(pidA, SIGKILL) == -1) in child1_rout()
826 if (kill(pid2, SIGKILL) == -1 && errno != ESRCH) in par_kill()
843 if (kill(pidA, SIGKILL) == -1 && errno != ESRCH) in chld1_kill()
850 if (kill(pidB, SIGKILL) == -1 && errno != ESRCH) in chld1_kill()
H A Dkill06.c30 TEST(kill(-getpgrp(), SIGKILL)); in verify_kill()
38 if (nsig != SIGKILL) { in verify_kill()
40 "expected SIGKILL(9)", nsig); in verify_kill()
43 tst_res(TPASS, "receive expected signal SIGKILL(9)"); in verify_kill()
/third_party/rust/crates/nix/test/sys/
H A Dtest_ptrace.rs111 ptrace::cont(child, Some(Signal::SIGKILL)).unwrap(); in test_ptrace_cont()
113 Ok(WaitStatus::Signaled(pid, Signal::SIGKILL, _)) in test_ptrace_cont()
121 while ptrace::cont(child, Some(Signal::SIGKILL)).is_ok() { in test_ptrace_cont()
163 ptrace::detach(child, Some(Signal::SIGKILL)).unwrap(); in test_ptrace_interrupt()
165 Ok(WaitStatus::Signaled(pid, Signal::SIGKILL, _)) in test_ptrace_interrupt()
169 while ptrace::cont(child, Some(Signal::SIGKILL)).is_ok() { in test_ptrace_interrupt()
/third_party/ltp/testcases/kernel/syscalls/waitid/
H A Dwaitid11.c11 * killed with SIGKILL.
31 SAFE_KILL(pidchild, SIGKILL); in run()
35 TST_EXP_EQ_LI(infop->si_status, SIGKILL); in run()

Completed in 7 milliseconds

12345678910>>...14