Skip to content
Snippets Groups Projects
Commit a625a200 authored by Lars Kanis's avatar Lars Kanis
Browse files

Replace pipe2() by pipe() and fcntl(), because pipe2() is not as portable.

parent eb5d857f
No related branches found
No related tags found
No related merge requests found
......@@ -85,7 +85,8 @@ void FXRbApp::setThreadsEnabled(FXbool enabled){
interrupt_event = CreateEvent(NULL, TRUE, FALSE, NULL);
addInput(interrupt_event,INPUT_READ,this,ID_CHORE_THREADS);
#else
pipe2(interrupt_fds, O_NONBLOCK);
pipe(interrupt_fds);
fcntl(interrupt_fds[0], F_SETFL, O_NONBLOCK);
addInput(interrupt_fds[0],INPUT_READ,this,ID_CHORE_THREADS);
#endif
#else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment