Bugzilla – Attachment 3586 Details for
Bug 3416
sshd freeze when build without HAVE_PPOLL
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Check that returned events were actually requestd
ssh-ppoll.patch (text/plain), 677 bytes, created by
Darren Tucker
on 2022-04-01 16:42:36 AEDT
(
hide
)
Description:
Check that returned events were actually requestd
Filename:
MIME Type:
Creator:
Darren Tucker
Created:
2022-04-01 16:42:36 AEDT
Size:
677 bytes
patch
obsolete
>diff --git a/openbsd-compat/bsd-poll.c b/openbsd-compat/bsd-poll.c >index 781ee978..9a9794f5 100644 >--- a/openbsd-compat/bsd-poll.c >+++ b/openbsd-compat/bsd-poll.c >@@ -91,11 +91,11 @@ ppoll(struct pollfd *fds, nfds_t nfds, const struct timespec *tmoutp, > fds[i].revents = 0; > if (fd == -1) > continue; >- if (FD_ISSET(fd, readfds)) >+ if ((fds[i].events & POLLIN) && FD_ISSET(fd, readfds)) > fds[i].revents |= POLLIN; >- if (FD_ISSET(fd, writefds)) >+ if ((fds[i].events & POLLOUT) && FD_ISSET(fd, writefds)) > fds[i].revents |= POLLOUT; >- if (FD_ISSET(fd, exceptfds)) >+ if ((fds[i].events & POLLPRI) && FD_ISSET(fd, exceptfds)) > fds[i].revents |= POLLPRI; > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
djm
:
ok+
Actions:
View
|
Diff
Attachments on
bug 3416
: 3586