From 875408270c5a7dd69ed5449e5d85bd7120c88f70 Mon Sep 17 00:00:00 2001 From: "djm@openbsd.org" Date: Thu, 18 Nov 2021 03:31:44 +0000 Subject: upstream: check for POLLHUP wherever we check for POLLIN OpenBSD-Commit-ID: 6aa6f3ec6b17c3bd9bfec672a917f003a76d93e5 --- ssh-pkcs11-helper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ssh-pkcs11-helper.c') diff --git a/ssh-pkcs11-helper.c b/ssh-pkcs11-helper.c index 5ca8d03f..5c3eaaeb 100644 --- a/ssh-pkcs11-helper.c +++ b/ssh-pkcs11-helper.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh-pkcs11-helper.c,v 1.25 2021/08/11 05:20:17 djm Exp $ */ +/* $OpenBSD: ssh-pkcs11-helper.c,v 1.26 2021/11/18 03:31:44 djm Exp $ */ /* * Copyright (c) 2010 Markus Friedl. All rights reserved. * @@ -385,7 +385,7 @@ main(int argc, char **argv) } /* copy stdin to iqueue */ - if ((pfd[0].revents & (POLLIN|POLLERR)) != 0) { + if ((pfd[0].revents & (POLLIN|POLLHUP|POLLERR)) != 0) { len = read(in, buf, sizeof buf); if (len == 0) { debug("read eof"); -- cgit v1.2.1