Home
last modified time | relevance | path

Searched refs:SIGUSR2 (Results 1 – 25 of 54) sorted by relevance

123

/openbsd/regress/sys/kern/kqueue/
H A Dkqueue-signal.c60 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 Dsigsuspend.c46 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 DREADME3 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 Dsigpthread.c137 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 Dsigsuspend.c72 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 Dsignal-stress.c26 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 Dread.c42 CHECKe(sigaction(SIGUSR2, &sa, NULL)); in main()
52 CHECKr(pthread_kill(tid, SIGUSR2)); in main()
/openbsd/regress/lib/libpthread/restart/readv/
H A Dreadv.c46 CHECKe(sigaction(SIGUSR2, &sa, NULL)); in main()
56 CHECKr(pthread_kill(tid, SIGUSR2)); in main()
/openbsd/regress/lib/libpthread/restart/recvfrom/
H A Drecvfrom.c51 CHECKe(sigaction(SIGUSR2, &sa, NULL)); in main()
61 CHECKr(pthread_kill(tid, SIGUSR2)); in main()
/openbsd/regress/lib/libpthread/restart/accept/
H A Daccept.c51 CHECKe(sigaction(SIGUSR2, &sa, NULL)); in main()
61 CHECKr(pthread_kill(tid, SIGUSR2)); in main()
/openbsd/regress/lib/libpthread/restart/recvmsg/
H A Drecvmsg.c57 CHECKe(sigaction(SIGUSR2, &sa, NULL)); in main()
67 CHECKr(pthread_kill(tid, SIGUSR2)); in main()
/openbsd/regress/lib/libpthread/errno/
H A Derrno.c71 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 Dsignals.c340 #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 Dpower.c158 prsignal(initprocess, SIGUSR2); in power_thread_dr()
175 prsignal(initprocess, SIGUSR2); in power_thread_reg()
/openbsd/usr.sbin/rbootd/
H A Drbootd.c120 (void) signal(SIGUSR2, SIG_IGN); in main()
127 (void) signal(SIGUSR2, DebugOff); in main()
/openbsd/lib/libcrypto/ui/
H A Dui_openssl.c371 if (i == SIGUSR2) in pushsig()
388 if (i == SIGUSR2) in popsig()
/openbsd/gnu/llvm/lldb/tools/debugserver/source/
H A DSysSignal.cpp88 case SIGUSR2: in Name()
/openbsd/gnu/lib/libiberty/src/
H A Dstrsignal.c133 #if defined (SIGUSR2)
134 ENTRY(SIGUSR2, "SIGUSR2", "User defined signal 2"),
/openbsd/gnu/usr.bin/binutils/gdb/testsuite/gdb.base/
H A Dsigall.c1078 #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 Dsignal.h88 #define SIGUSR2 31 /* user defined signal 2 */ macro
/openbsd/sys/arch/sparc64/dev/
H A Dpower.c133 prsignal(initprocess, SIGUSR2); in power_intr()
/openbsd/gnu/llvm/compiler-rt/lib/stats/
H A Dstats.cpp127 internal_sigaction(SIGUSR2, &sigact, nullptr); in WriteReportOnExitOrSignal()
/openbsd/sys/dev/fdt/
H A Dqcpon.c151 prsignal(initprocess, SIGUSR2); in qcpon_powerdown_task()
/openbsd/usr.bin/tmux/
H A Dproc.c254 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 Dtape.c748 signal(SIGUSR2, proceed); /* Slave sends SIGUSR2 to next slave */ in enslave()
841 sigaddset(&nsigset, SIGUSR2); in doslave()
906 (void) kill(nextslave, SIGUSR2); in doslave()

123