commit f1e7a78ba26a8c12f92afe9434f1e8744e08e378
Author: Jan Klemkow <[email protected]>
AuthorDate: Sat Apr 11 21:14:29 2020 +0200
Commit: Jan Klemkow <[email protected]>
CommitDate: Sat Apr 11 22:28:54 2020 +0200
remove dead code
it seems we don't need non-blocking i/o.
diff --git a/scroll.c b/scroll.c
index bea53a9..aec6496 100644
--- a/scroll.c
+++ b/scroll.c
@@ -441,12 +441,6 @@ main(int argc, char *argv[])
if (signal(SIGWINCH, sigwinch) == SIG_ERR)
die("signal:");
- int f;
- if ((f = fcntl(mfd, F_GETFL)) == -1)
- die("fcntl:");
- if (fcntl(mfd, F_SETFL, f /*| O_NONBLOCK*/) == -1)
- die("fcntl:");
-
struct termios new = dfl;
cfmakeraw(&new);
new.c_cc[VMIN ] = 1;