Browse Source

fix poll return instant.

Jan Klemkow 6 years ago
parent
commit
a56ac4babd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scroll.c

+ 1 - 1
scroll.c

@@ -280,7 +280,7 @@ main(int argc, char *argv[])
 	for (;;) {
 		char c;
 
-		if (poll(pfd, 2, 0) == -1 && errno != EINTR)
+		if (poll(pfd, 2, INFTIM) == -1 && errno != EINTR)
 			die("poll:");
 
 		if (pfd[0].revents & POLLIN) {