From: benno Date: Thu, 20 Jan 2022 17:56:35 +0000 (+0000) Subject: catch poll() returning EINTR. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=5fa7fa1a412207869c560961588359656db91609;p=openbsd catch poll() returning EINTR. ok millert@ claudio@ --- diff --git a/usr.sbin/relayd/ca.c b/usr.sbin/relayd/ca.c index ec24eff4364..5a4e109499c 100644 --- a/usr.sbin/relayd/ca.c +++ b/usr.sbin/relayd/ca.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ca.c,v 1.38 2022/01/11 19:06:23 tb Exp $ */ +/* $OpenBSD: ca.c,v 1.39 2022/01/20 17:56:35 benno Exp $ */ /* * Copyright (c) 2014 Reyk Floeter @@ -356,7 +356,9 @@ rsae_send_imsg(int flen, const u_char *from, u_char *to, RSA *rsa, while (!done) { switch (poll(pfd, 1, RELAY_TLS_PRIV_TIMEOUT)) { case -1: - fatal("%s: poll", __func__); + if (errno != EINTR) + fatal("%s: poll", __func__); + continue; case 0: log_warnx("%s: priv%s poll timeout, keyop #%x", __func__,