Continue accept loop when pselect returns -1, eg if it was interrupted
authordtucker <dtucker@openbsd.org>
Thu, 10 Jun 2021 03:14:14 +0000 (03:14 +0000)
committerdtucker <dtucker@openbsd.org>
Thu, 10 Jun 2021 03:14:14 +0000 (03:14 +0000)
commit773c464ddbbc39b8cec88984160eb2603f2c445e
tree125f8204f3c1a3534ed46fd371ae01dc1f7dd5b4
parentd445a01e1906101fa8377c780ed66c9c526ba36d
Continue accept loop when pselect returns -1, eg if it was interrupted
by a signal.  This should prevent the hang discovered by sthen@ wherein
sshd receives a SIGHUP while it has an unauthenticated child and goes
on to a blocking read on a notify_pipe.  feedback deraadt@, ok djm@
usr.bin/ssh/sshd.c