From: claudio Date: Sat, 27 Feb 2021 08:59:29 +0000 (+0000) Subject: It is perfectly fine to POLLIN and POLLOUT at the same time. It may X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=424ffda4e82ce88eed1eb03879b3bb24aaadf4ef;p=openbsd It is perfectly fine to POLLIN and POLLOUT at the same time. It may actually make things a bit faster. OK deraadt@ --- 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 * @@ -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)