mask SIGINT/TERM/QUIT/HUP before checking quit_pending and use ppoll()
authordjm <djm@openbsd.org>
Thu, 12 Oct 2023 02:12:53 +0000 (02:12 +0000)
committerdjm <djm@openbsd.org>
Thu, 12 Oct 2023 02:12:53 +0000 (02:12 +0000)
commit85c6980a6c870a8e090879a03be25d5bac8b1127
tree84a9660a0666fc530d751741c1d76d72d05846ec
parent5b05d4e0eab53eac5bc6243262bdedb3ccf3b8c7
mask SIGINT/TERM/QUIT/HUP before checking quit_pending and use ppoll()
to unmask them in the mainloop. Avoids race condition between signaling
ssh to exit and polling. bz3531; ok dtucker
usr.bin/ssh/clientloop.c