]> git.lyx.org Git - lyx.git/blobdiff - src/Server.cpp
InsetLine.cpp: remove unused include
[lyx.git] / src / Server.cpp
index 555d31b14a8f44217a6ef7833a803fdf619769da..6a6ed2f837a8be8a57a48dbe5248d01368a32624 100644 (file)
@@ -55,7 +55,7 @@
 #include "support/lstrings.h"
 #include "support/os.h"
 
-#include <boost/bind.hpp>
+#include "support/bind.h"
 
 #ifdef _WIN32
 #include <QCoreApplication>
@@ -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'
@@ -840,7 +840,7 @@ int LyXComm::startPipe(string const & file, bool write)
 
        if (!write) {
                theApp()->registerSocketCallback(fd,
-                       boost::bind(&LyXComm::read_ready, this));
+                       bind(&LyXComm::read_ready, this));
        }
 
        return fd;