From 78bfbf3e4fd051cd3eeab36c68205368213462cb Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Thu, 23 Feb 2012 15:34:10 -0500 Subject: [PATCH] Use non-blocking pipe read on FreeBSD --- chrome/content/zotero/xpcom/ipc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/ipc.js b/chrome/content/zotero/xpcom/ipc.js index 9c10ae37e1..3f91aa9ac9 100755 --- a/chrome/content/zotero/xpcom/ipc.js +++ b/chrome/content/zotero/xpcom/ipc.js @@ -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