#include "support/path.h"
#include "support/systemcall.h"
+#if !defined (HAVE_FORK)
+# define fork() -1
+#endif
+
#include <boost/shared_ptr.hpp>
#include <boost/filesystem/operations.hpp>
}
-void QuitLyX()
+void QuitLyX(bool noask)
{
lyxerr[Debug::INFO] << "Running QuitLyX." << endl;
if (lyx_gui::use_gui) {
- if (!bufferlist.quitWriteAll())
+ if (!noask && !bufferlist.quitWriteAll())
return;
LyX::cref().lastfiles().writeFile(lyxrc.lastfiles);