#include "support/lassert.h"
#include "support/lstrings.h"
#include "support/os.h"
-#include "support/signals.h"
#include <iostream>
#ifdef _WIN32
-#include <io.h>
-#include <QCoreApplication>
+# include <io.h>
+# include <QCoreApplication>
+#else
+# ifdef HAVE_UNISTD_H
+# include <unistd.h>
+# endif
#endif
#include <QThread>
if (!resetPipe(i, !success))
return false;
break;
+ case CONNECTING_STATE:
+ LYXERR0("Wrong pipe state");
+ break;
}
}
if (!write) {
// Make sure not to call read_ready after destruction.
weak_ptr<void> tracker = tracker_.p();
- theApp()->registerSocketCallback(fd, [=](){
+ theApp()->registerSocketCallback(fd, [this, tracker](){
if (!tracker.expired())
read_ready();
});
} // namespace
-bool LyXComm::loadFilesInOtherInstance()
+bool LyXComm::loadFilesInOtherInstance() const
{
int pipefd;
FileName const pipe(inPipeName());