Browse Source

remove dead code

it seems we don't need non-blocking i/o.
Jan Klemkow 5 years ago
parent
commit
f1e7a78ba2
1 changed files with 0 additions and 6 deletions
  1. 0 6
      scroll.c

+ 0 - 6
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;