diff options
author | 2021-02-27 08:59:29 +0000 | |
---|---|---|
committer | 2021-02-27 08:59:29 +0000 | |
commit | 424ffda4e82ce88eed1eb03879b3bb24aaadf4ef (patch) | |
tree | 25880b52a631665fbe7f04d5b556173de936ae99 | |
parent | Handle NULL term_type. (diff) | |
download | wireguard-openbsd-424ffda4e82ce88eed1eb03879b3bb24aaadf4ef.tar.xz wireguard-openbsd-424ffda4e82ce88eed1eb03879b3bb24aaadf4ef.zip |
It is perfectly fine to POLLIN and POLLOUT at the same time. It may
actually make things a bit faster.
OK deraadt@
-rw-r--r-- | usr.sbin/rpki-client/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/rpki-client/main.c b/usr.sbin/rpki-client/main.c index a22e042f3b4..f473c24c3f0 100644 --- a/usr.sbin/rpki-client/main.c +++ b/usr.sbin/rpki-client/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.105 2021/02/23 14:25:29 claudio Exp $ */ +/* $OpenBSD: main.c,v 1.106 2021/02/27 08:59:29 claudio Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -984,10 +984,10 @@ main(int argc, char *argv[]) while (entity_queue > 0 && !killme) { pfd[0].events = POLLIN; if (rsyncq.queued) - pfd[0].events = POLLOUT; + pfd[0].events |= POLLOUT; pfd[1].events = POLLIN; if (procq.queued) - pfd[1].events = POLLOUT; + pfd[1].events |= POLLOUT; if ((c = poll(pfd, 2, INFTIM)) == -1) { if (errno == EINTR) |