mirror of
https://github.com/zotero/zotero.git
synced 2026-10-05 02:43:38 +00:00
Use non-blocking pipe read on FreeBSD
This commit is contained in:
parent
3c33768116
commit
78bfbf3e4f
1 changed files with 2 additions and 2 deletions
|
|
@ -126,11 +126,11 @@ Zotero.IPC = new function() {
|
|||
}
|
||||
}
|
||||
|
||||
// On OS X, O_NONBLOCK = 0x0004
|
||||
// On OS X and FreeBSD, O_NONBLOCK = 0x0004
|
||||
// On Linux, O_NONBLOCK = 00004000
|
||||
// On both, O_WRONLY = 0x0001
|
||||
var mode = 0x0001;
|
||||
if(!block) mode = mode | (Zotero.isMac ? 0x0004 : 00004000);
|
||||
if(!block) mode = mode | (Zotero.isLinux ? 00004000 : 0x0004);
|
||||
|
||||
// Also append to plain files to get things working with Fx 3.6 polling
|
||||
// On OS X, O_APPEND = 0x0008
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue