Use non-blocking pipe read on FreeBSD

This commit is contained in:
Simon Kornblith 2012-02-23 15:34:10 -05:00
parent 3c33768116
commit 78bfbf3e4f

View file

@ -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