mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-10-06 00:30:10 -06:00
CtrlCore: X11 pipe2 -> pipe + fnctl
git-svn-id: svn://ultimatepp.org/upp/trunk@5563 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
4bd50d35eb
commit
3184f846f7
1 changed files with 3 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue