commit f1e7a78ba26a8c12f92afe9434f1e8744e08e378
parent 4a454be5448811cf224d2e29797380e427e1b78e
Author: Jan Klemkow <j.klemkow@wemelug.de>
Date: Sat, 11 Apr 2020 21:14:29 +0200
remove dead code
it seems we don't need non-blocking i/o.
Diffstat:
1 file changed, 0 insertions(+), 6 deletions(-)
diff --git 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;