/third_party/node/test/parallel/ |
H A D | test-child-process-spawnsync-kill-signal.js | 12 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 D | signal01.c | 12 * 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 D | 30-1.c | 24 * -> 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 D | 4-11.c | 10 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 D | 4-12.c | 10 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 D | 4-13.c | 10 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 D | 4-14.c | 10 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 D | 4-15.c | 10 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 D | 4-16.c | 10 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 D | 4-24.c | 10 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 D | 4-17.c | 10 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 D | 4-18.c | 10 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 D | 4-19.c | 10 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 D | 4-20.c | 10 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 D | 4-22.c | 10 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 D | 4-21.c | 10 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 D | cpuset_hotplug_test.sh | 150 /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 D | pipe04.c | 157 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 D | pause03.c | 21 * 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 D | 5-1.c | 114 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 D | 5-2.c | 122 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 D | kill02.c | 240 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 D | kill06.c | 30 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 D | test_ptrace.rs | 111 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 D | waitid11.c | 11 * killed with SIGKILL. 31 SAFE_KILL(pidchild, SIGKILL); in run() 35 TST_EXP_EQ_LI(infop->si_status, SIGKILL); in run()
|