浏览代码

Prevents read blocking on Mac.

BDisp 4 年之前
父节点
当前提交
0e2446588a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Terminal.Gui/ConsoleDrivers/CursesDriver/UnixMainLoop.cs

+ 1 - 1
Terminal.Gui/ConsoleDrivers/CursesDriver/UnixMainLoop.cs

@@ -116,7 +116,7 @@ namespace Terminal.Gui {
 			this.mainLoop = mainLoop;
 			this.mainLoop = mainLoop;
 			pipe (wakeupPipes);
 			pipe (wakeupPipes);
 			AddWatch (wakeupPipes [0], Condition.PollIn, ml => {
 			AddWatch (wakeupPipes [0], Condition.PollIn, ml => {
-				read (wakeupPipes [0], ignore, (IntPtr)1);
+				read (wakeupPipes [0], ignore, (IntPtr)0);
 				return true;
 				return true;
 			});
 			});
 		}
 		}