From: R.E. Wolff Date: Tue, 21 Nov 2017 14:50:41 +0000 (+0100) Subject: fixed split like for macos X-Git-Tag: v0.93~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebdbf711a74b62e1b38119f0426c51bb7a44e40c;p=thirdparty%2Fmtr.git fixed split like for macos --- diff --git a/ui/split.c b/ui/split.c index 83fc946..8743351 100644 --- a/ui/split.c +++ b/ui/split.c @@ -166,7 +166,8 @@ int split_keyaction( tv.tv_usec = 0; if (select(1, &readfds, NULL, NULL, &tv) > 0) { - read(0, &c, 1); + if (read(0, &c, 1) < 0) + return ActionQuit; } else return 0; #endif