#include "support/bind.h"
#ifdef _WIN32
+#include <io.h>
#include <QCoreApplication>
#endif
#include <QThread>
break;
string const cmd = "LYXCMD:pipe:file-open:" +
fname.absFileName() + '\n';
- ::write(pipefd, cmd.c_str(), cmd.length());
+ if (::write(pipefd, cmd.c_str(), cmd.length()) < 0)
+ LYXERR0("Cannot write to pipe!");
::close(pipefd);
++loaded_files;
it = theFilesToLoad().erase(it);
FuncRequest const fr(lyxaction.lookupFunc(cmd), arg);
DispatchResult dr;
theApp()->dispatch(fr, dr);
+ theApp()->dispatch(FuncRequest(LFUN_PARAGRAPH_UPDATE));
string const rval = to_utf8(dr.message());
// all commands produce an INFO or ERROR message