START sys/kern/signal/sigpthread 2024-11-26T09:08:27Z ==== run-block-thread-3-unblock-0 ==== cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -MD -MP -c /usr/src/regress/sys/kern/signal/sigpthread/sigpthread.c /usr/src/regress/sys/kern/signal/sigpthread/sigpthread.c:199:8: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] ret = (int)val; ^~~~~~~~ /usr/src/regress/sys/kern/signal/sigpthread/sigpthread.c:205:9: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] ret = (int)val; ^~~~~~~~ /usr/src/regress/sys/kern/signal/sigpthread/sigpthread.c:247:13: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] int tnum = (int)arg; ^~~~~~~~ 3 warnings generated. cc -o sigpthread sigpthread.o -lpthread # block signal # run 3 threads # kill process # suspend threads until signaled # unblock thread 0 # handle signal ./sigpthread -b -t 3 -u 0 >out grep 'signal 0' out signal 0 test `wc -l out grep 'signal 0' out signal 0 test `wc -l out grep 'signal 0' out signal 0 test `wc -l out grep 'signal 0' out signal 0 test `wc -l out grep 'signal 0' out signal 0 test `wc -l out grep 'signal 0' out signal 0 test `wc -l out grep 'signal 0' out signal 0 test `wc -l out grep 'signal 0' out signal 0 test `wc -l out grep 'signal 0' out signal 0 test `wc -l out grep 'signal 0' out signal 0 test `wc -l out grep 'signal 0' out signal 0 test `wc -l out grep 'signal 1' out signal 1 test `wc -l out grep 'signal 1' out signal 1 test `wc -l out grep 'signal 1' out signal 1 test `wc -l out grep 'signal 1' out signal 1 test `wc -l out grep 'signal 1' out signal 1 test `wc -l out grep 'signal 1' out signal 1 test `wc -l out grep 'signal 1' out signal 1 test `wc -l out grep 'signal 1' out signal 1 test `wc -l out grep 'signal 1' out signal 1 test `wc -l out grep 'signal 1' out signal 1 test `wc -l out grep 'signal 1' out signal 1 test `wc -l out grep 'signal 2' out signal 2 test `wc -l out grep 'signal 2' out signal 2 test `wc -l out grep 'signal 2' out signal 2 test `wc -l out grep 'signal 2' out signal 2 test `wc -l out grep 'signal 2' out signal 2 test `wc -l out grep 'signal 2' out signal 2 test `wc -l out grep 'signal 2' out signal 2 test `wc -l out grep 'signal 2' out signal 2 test `wc -l out grep 'signal 2' out signal 2 test `wc -l out grep 'signal 2' out signal 2 test `wc -l out grep 'signal 2' out signal 2 test `wc -l out grep 'signal [0-2]' out signal 1 test `wc -l out grep 'signal [0-2]' out signal 0 test `wc -l out grep 'signal [0-2]' out signal 0 test `wc -l out grep 'signal [0-2]' out signal 0 test `wc -l out grep 'signal 0' out signal 0 test `wc -l out grep 'signal 0' out signal 0 test `wc -l out grep 'signal 0' out signal 0 test `wc -l out grep 'signal 0' out signal 0 test `wc -l out grep 'signal 1' out signal 1 test `wc -l out grep 'signal 1' out signal 1 test `wc -l out grep 'signal 1' out signal 1 test `wc -l out grep 'signal 1' out signal 1 test `wc -l out grep 'signal 2' out signal 2 test `wc -l out grep 'signal 2' out signal 2 test `wc -l out grep 'signal 2' out signal 2 test `wc -l out grep 'signal 2' out signal 2 test `wc -l out grep 'signal [0-2]' out signal 0 test `wc -l out grep 'signal [0-2]' out signal 0 test `wc -l out grep 'signal [0-2]' out signal 0 test `wc -l out grep 'signal [0-2]' out signal 0 test `wc -l out grep 'signal 0' out signal 0 test `wc -l out grep 'signal 0' out signal 0 test `wc -l out grep 'signal 0' out signal 0 test `wc -l out grep 'signal 0' out signal 0 test `wc -l out grep 'signal 0' out signal 0 test `wc -l out grep 'signal 1' out signal 1 test `wc -l out grep 'signal 1' out signal 1 test `wc -l out grep 'signal 1' out signal 1 test `wc -l out grep 'signal 1' out signal 1 test `wc -l out grep 'signal 1' out signal 1 test `wc -l out grep 'signal 2' out signal 2 test `wc -l out grep 'signal 2' out signal 2 test `wc -l out grep 'signal 2' out signal 2 test `wc -l out grep 'signal 2' out signal 2 test `wc -l out grep 'signal 2' out signal 2 test `wc -l out grep 'signal 23' out signal 23 test `wc -l out grep 'signal 42' out signal 42 test `wc -l