From 61096546b3fce0f3cb5482865ecb8019f282ec25 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Mon, 15 Mar 2010 22:16:30 +0000 Subject: [PATCH] The output pipe is only used for writing, and not also for reading. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33756 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Server.cpp b/src/Server.cpp index 9b9f6e0a75..555d31b14a 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_RDWR) : (O_RDONLY|O_NONBLOCK)); + write ? (O_WRONLY) : (O_RDONLY|O_NONBLOCK)); if (fd < 0) { lyxerr << "LyXComm: Could not open pipe " << filename << '\n' -- 2.39.2