Commit 03943eb279a154e7c2eceb510a379cafeb4aa56f

Stefan Sperling 2018-07-18T09:34:28

ncurses does not return ERR with errno == EINTR; don't expect it

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/tog/tog.c b/tog/tog.c
index 45a8fe0..dfae536 100644
--- a/tog/tog.c
+++ b/tog/tog.c
@@ -764,12 +764,6 @@ show_log_view(struct got_object_id *start_id, struct got_repository *repo,
 		nodelay(stdscr, TRUE);
 		switch (ch) {
 			case ERR:
-				if (errno) {
-					if (errno == EINTR)
-						break;
-					err = got_error_from_errno();
-					goto done;
-				}
 				break;
 			case 'q':
 				done = 1;