From c9cb7c0c2f698be97ddafd7575a3859aed9cb518 Mon Sep 17 00:00:00 2001 Message-Id: From: Mark Wooding Date: Wed, 13 Sep 2017 10:19:41 +0100 Subject: [PATCH] proxy/tripe-mitm.c: Report errors from select(2). Organization: Straylight/Edgeware From: Mark Wooding --- proxy/tripe-mitm.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/proxy/tripe-mitm.c b/proxy/tripe-mitm.c index ee7036c2..74739539 100644 --- a/proxy/tripe-mitm.c +++ b/proxy/tripe-mitm.c @@ -721,8 +721,10 @@ int main(int argc, char *argv[]) parse(argv[i]); if (npeer != 2) die(1, "need two peers"); - for (;;) - sel_select(&sel); + for (;;) { + if (sel_select(&sel) && errno != EINTR) + die(1, "select failed: %s", strerror(errno)); + } #undef f_bogus } -- [mdw]