summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/mc/mc-4.6.1-nonblock.patch
blob: eca34aaf5289b0aa76c993cbb59065cae4201c61 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- mc-4.6.1/src/cons.saver.c.old	2006-04-30 20:45:11.725128977 +0200
+++ mc-4.6.1/src/cons.saver.c	2006-04-30 20:45:55.545063247 +0200
@@ -134,7 +134,7 @@
 
   if (seteuid (uid) < 0)
     die ();
-  console_fd = open (tty_name, O_RDONLY);
+  console_fd = open (tty_name, O_RDONLY | O_NONBLOCK);
   if (console_fd < 0)
     die ();
   if (fstat (console_fd, &st) < 0 || ! S_ISCHR (st.st_mode))