From: Enrico Forestieri Date: Tue, 16 Mar 2010 07:55:22 +0000 (+0000) Subject: Revert r33756 because lyx hangs on startup on some platforms. X-Git-Tag: 2.0.0~3791 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=06122df30ab9754460d0e6d3d29c6c08bad86878;p=features.git Revert r33756 because lyx hangs on startup on some platforms. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33761 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/Server.cpp b/src/Server.cpp index 555d31b14a..9b9f6e0a75 100644 --- a/src/Server.cpp +++ b/src/Server.cpp @@ -829,7 +829,7 @@ int LyXComm::startPipe(string const & file, bool write) return -1; } int const fd = ::open(filename.toFilesystemEncoding().c_str(), - write ? (O_WRONLY) : (O_RDONLY|O_NONBLOCK)); + write ? (O_RDWR) : (O_RDONLY|O_NONBLOCK)); if (fd < 0) { lyxerr << "LyXComm: Could not open pipe " << filename << '\n'