chiark
/
gitweb
/
~mdw
/
tripe
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
ddaca88
)
proxy/tripe-mitm.c: Report errors from select(2).
author
Mark Wooding
<mdw@distorted.org.uk>
Wed, 13 Sep 2017 09:19:41 +0000
(10:19 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Thu, 14 Jun 2018 09:34:25 +0000
(10:34 +0100)
proxy/tripe-mitm.c
patch
|
blob
|
blame
|
history
diff --git
a/proxy/tripe-mitm.c
b/proxy/tripe-mitm.c
index ee7036c244b8ea01cf2df54a2c4215c879ad95c6..74739539d36f761213ed8d850b9583a68c853c6c 100644
(file)
--- 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
}