]> git.lyx.org Git - lyx.git/blobdiff - src/Server.cpp
A little more lv cleanup.
[lyx.git] / src / Server.cpp
index 555d31b14a8f44217a6ef7833a803fdf619769da..9b9f6e0a75a76009cdc569df7a3e2f26a54a188a 100644 (file)
@@ -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'