CtrlCore: X11 pipe2 -> pipe + fnctl

git-svn-id: svn://ultimatepp.org/upp/trunk@5563 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2012-11-19 14:06:30 +00:00
commit 3184f846f7

View file

@ -372,7 +372,9 @@ static bool WakePipeOK;
static int WakePipe[2];
INITBLOCK {
WakePipeOK = pipe2(WakePipe, O_NONBLOCK) == 0;
WakePipeOK = pipe(WakePipe) == 0;
fcntl(WakePipe[0], F_SETFL, O_NONBLOCK);
fcntl(WakePipe[1], F_SETFL, O_NONBLOCK);
}
void WakeUpGuiThread()