Prevents read blocking on Mac.

This commit is contained in:
BDisp
2021-05-29 22:43:39 +01:00
parent 87926a7d3d
commit 0e2446588a

View File

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