]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
better fix. to dave's problem.
authorR.E. Wolff <R.E.Wolff@BitWizard.nl>
Tue, 21 Nov 2017 16:20:42 +0000 (17:20 +0100)
committerR.E. Wolff <R.E.Wolff@BitWizard.nl>
Tue, 21 Nov 2017 16:20:42 +0000 (17:20 +0100)
ui/split.c

index 8743351e52ba39bef963492d0864a3c03a9b0ebe..c0f46beb55881b084410a71fee0553710e4374f0 100644 (file)
@@ -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;