From: R.E. Wolff Date: Tue, 21 Nov 2017 16:20:42 +0000 (+0100) Subject: better fix. to dave's problem. X-Git-Tag: v0.93~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b3aba317c0a8be0087eee77fe2db2e70b60584c;p=thirdparty%2Fmtr.git better fix. to dave's problem. --- diff --git a/ui/split.c b/ui/split.c index 8743351..c0f46be 100644 --- a/ui/split.c +++ b/ui/split.c @@ -166,7 +166,7 @@ int split_keyaction( tv.tv_usec = 0; if (select(1, &readfds, NULL, NULL, &tv) > 0) { - if (read(0, &c, 1) < 0) + if (read(0, &c, 1) <= 0) return ActionQuit; } else return 0;