]> git.ipfire.org Git - thirdparty/openssh-portable.git/commit
Add pselect implementation for platforms without.
authorDarren Tucker <dtucker@dtucker.net>
Fri, 4 Jun 2021 08:39:48 +0000 (18:39 +1000)
committerDarren Tucker <dtucker@dtucker.net>
Fri, 4 Jun 2021 08:39:48 +0000 (18:39 +1000)
commitc8677065070ee34c05c7582a9c2f58d8642e552d
treee574f75ddc796ef0d7527ed6fcc634f66910991c
parent7cd7f302d3a072748299f362f9e241d81fcecd26
Add pselect implementation for platforms without.

This is basically the existing notify_pipe kludge from serverloop.c
moved behind a pselect interface.  It works by installing a signal
handler that writes to a pipe that the select is watching, then calls
the original handler.

The select call in serverloop will become pselect soon, at which point the
kludge will be removed from thereand will only exist in the compat layer.
Original code by markus, help from djm.
configure.ac
openbsd-compat/Makefile.in
openbsd-compat/bsd-misc.h
openbsd-compat/bsd-pselect.c [new file with mode: 0644]