/openbsd/regress/sys/kern/kqueue/ |
H A D | kqueue-signal.c | 60 signal(SIGUSR2, SIG_IGN); in do_signal() 65 EV_SET(&ke, SIGUSR2, EVFILT_SIGNAL, EV_ADD|EV_ENABLE, 0, 0, NULL); in do_signal() 79 kill(pid, SIGUSR2); in do_signal() 80 ASSX(sigtest(SIGUSR2, 1) == 0); in do_signal() 81 kill(pid, SIGUSR2); in do_signal() 82 kill(pid, SIGUSR2); in do_signal() 83 ASSX(sigtest(SIGUSR2, 2) == 0); in do_signal() 87 sigaddset(&mask, SIGUSR2); in do_signal() 92 kill(pid, SIGUSR2); in do_signal()
|
/openbsd/regress/sys/kern/signal/sigsuspend/ |
H A D | sigsuspend.c | 46 if (sigaction(SIGUSR2, &sa, NULL)) in main() 54 sigaddset(&set, SIGUSR2); in main() 67 sigaddset(&set, SIGUSR2); in main() 76 !sigismember(&oset, SIGUSR2)) in main() 110 !sigismember(&oset, SIGUSR2)) in main() 116 kill(pid, SIGUSR2); in main()
|
/openbsd/regress/sys/kern/signal/sigpthread/ |
H A D | README | 3 Signal SIGUSR1 is used for thread coordination, SIGUSR2 to test 4 signal delivery. First SIGUSR1 and SIGUSR2 get blocked. Then a 8 Signal SIGUSR2 is send to the process with kill(2), but it is not 10 wait for SIGUSR1 in sigsuspend(2). This enforces that SIGUSR2 is 13 handle SIGUSR2, this one unblocks it with pthread_sigmask(3). The 16 The test is considered successful if the thread that unblocks SIGUSR2 20 kill(2) is delayed, SIGUSR2 hits the threads when they are in
|
H A D | sigpthread.c | 137 if (sigaddset(&set, SIGUSR2) == -1) in main() 145 if (sigaddset(&oset, SIGUSR2) == -1) in main() 150 if (sigaddset(&set, SIGUSR2) == -1) in main() 157 if (sigaction(SIGUSR2, &act, NULL) == -1) in main() 183 if (kill(getpid(), SIGUSR2) == -1) in main() 186 errno = pthread_kill(threads[threadkill], SIGUSR2); in main() 236 case SIGUSR2: in handler() 258 if (sig != SIGUSR2) in runner()
|
/openbsd/regress/lib/libpthread/sigsuspend/ |
H A D | sigsuspend.c | 72 sigdelset (&suspender_mask, SIGUSR2); /* terminate */ in sigsuspender() 77 save_count = sigcounts[SIGUSR2]; in sigsuspender() 174 sigaddset (&newset, SIGUSR2); in main() 180 sigaddset (&act.sa_mask, SIGUSR2); in main() 184 CHECKe(sigaction (SIGUSR2, &act, NULL)); in main() 224 CHECKr(pthread_kill (suspender_tid, SIGUSR2)); in main() 226 CHECKe(kill (getpid (), SIGUSR2)); in main() 229 ASSERT(sigcounts[SIGUSR2] == 2); in main()
|
/openbsd/regress/sys/kern/signal/signal-stress/ |
H A D | signal-stress.c | 26 if (sig == SIGUSR2 && ++usr2 <= nsigs) { in sighand() 59 signal(SIGUSR2, sighand); in do_child() 63 sigaddset(&mask, SIGUSR2); in do_child() 151 kill(pids[arc4random_uniform(nprocs)], SIGUSR2); in main()
|
/openbsd/regress/lib/libpthread/restart/read/ |
H A D | read.c | 42 CHECKe(sigaction(SIGUSR2, &sa, NULL)); in main() 52 CHECKr(pthread_kill(tid, SIGUSR2)); in main()
|
/openbsd/regress/lib/libpthread/restart/readv/ |
H A D | readv.c | 46 CHECKe(sigaction(SIGUSR2, &sa, NULL)); in main() 56 CHECKr(pthread_kill(tid, SIGUSR2)); in main()
|
/openbsd/regress/lib/libpthread/restart/recvfrom/ |
H A D | recvfrom.c | 51 CHECKe(sigaction(SIGUSR2, &sa, NULL)); in main() 61 CHECKr(pthread_kill(tid, SIGUSR2)); in main()
|
/openbsd/regress/lib/libpthread/restart/accept/ |
H A D | accept.c | 51 CHECKe(sigaction(SIGUSR2, &sa, NULL)); in main() 61 CHECKr(pthread_kill(tid, SIGUSR2)); in main()
|
/openbsd/regress/lib/libpthread/restart/recvmsg/ |
H A D | recvmsg.c | 57 CHECKe(sigaction(SIGUSR2, &sa, NULL)); in main() 67 CHECKr(pthread_kill(tid, SIGUSR2)); in main()
|
/openbsd/regress/lib/libpthread/errno/ |
H A D | errno.c | 71 CHECKe(kill(getpid(), SIGUSR2)); in act_handler() 136 CHECKe(sigaction(SIGUSR2, &act, NULL)); in main() 138 sigaddset(&sigusr2, SIGUSR2); in main()
|
/openbsd/gnu/usr.bin/binutils/gdb/signals/ |
H A D | signals.c | 340 #if defined (SIGUSR2) in target_signal_from_host() 341 if (hostsig == SIGUSR2) in target_signal_from_host() 593 #if defined (SIGUSR2) in do_target_signal_to_host() 595 return SIGUSR2; in do_target_signal_to_host()
|
/openbsd/sys/arch/hppa/dev/ |
H A D | power.c | 158 prsignal(initprocess, SIGUSR2); in power_thread_dr() 175 prsignal(initprocess, SIGUSR2); in power_thread_reg()
|
/openbsd/usr.sbin/rbootd/ |
H A D | rbootd.c | 120 (void) signal(SIGUSR2, SIG_IGN); in main() 127 (void) signal(SIGUSR2, DebugOff); in main()
|
/openbsd/lib/libcrypto/ui/ |
H A D | ui_openssl.c | 371 if (i == SIGUSR2) in pushsig() 388 if (i == SIGUSR2) in popsig()
|
/openbsd/gnu/llvm/lldb/tools/debugserver/source/ |
H A D | SysSignal.cpp | 88 case SIGUSR2: in Name()
|
/openbsd/gnu/lib/libiberty/src/ |
H A D | strsignal.c | 133 #if defined (SIGUSR2) 134 ENTRY(SIGUSR2, "SIGUSR2", "User defined signal 2"),
|
/openbsd/gnu/usr.bin/binutils/gdb/testsuite/gdb.base/ |
H A D | sigall.c | 1078 #ifdef SIGUSR2 in gen_USR2() 1079 kill (getpid (), SIGUSR2); in gen_USR2() 1657 #ifdef SIGUSR2 in main() 1658 signal (SIGUSR2, handle_USR2); in main()
|
/openbsd/sys/sys/ |
H A D | signal.h | 88 #define SIGUSR2 31 /* user defined signal 2 */ macro
|
/openbsd/sys/arch/sparc64/dev/ |
H A D | power.c | 133 prsignal(initprocess, SIGUSR2); in power_intr()
|
/openbsd/gnu/llvm/compiler-rt/lib/stats/ |
H A D | stats.cpp | 127 internal_sigaction(SIGUSR2, &sigact, nullptr); in WriteReportOnExitOrSignal()
|
/openbsd/sys/dev/fdt/ |
H A D | qcpon.c | 151 prsignal(initprocess, SIGUSR2); in qcpon_powerdown_task()
|
/openbsd/usr.bin/tmux/ |
H A D | proc.c | 254 signal_set(&tp->ev_sigusr2, SIGUSR2, proc_signal_cb, tp); in proc_set_signals() 290 sigaction(SIGUSR2, &sa, NULL); in proc_clear_signals()
|
/openbsd/sbin/dump/ |
H A D | tape.c | 748 signal(SIGUSR2, proceed); /* Slave sends SIGUSR2 to next slave */ in enslave() 841 sigaddset(&nsigset, SIGUSR2); in doslave() 906 (void) kill(nextslave, SIGUSR2); in doslave()
|