X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FServer.cpp;h=6a6ed2f837a8be8a57a48dbe5248d01368a32624;hb=604a3341d9bd6b6bee6f042292f28b89027ca2b5;hp=555d31b14a8f44217a6ef7833a803fdf619769da;hpb=61096546b3fce0f3cb5482865ecb8019f282ec25;p=lyx.git diff --git a/src/Server.cpp b/src/Server.cpp index 555d31b14a..6a6ed2f837 100644 --- a/src/Server.cpp +++ b/src/Server.cpp @@ -55,7 +55,7 @@ #include "support/lstrings.h" #include "support/os.h" -#include +#include "support/bind.h" #ifdef _WIN32 #include @@ -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;