SLEEPFORDEBUGGER is still useful for debugging, re-introduce that.

This reverts commit af3545b897.
This commit is contained in:
Jan Holesovsky 2015-04-23 15:25:59 +02:00
parent ed07f1a4e1
commit 8be550056b

View file

@ -489,6 +489,13 @@ int LOOLWSD::childMain()
exit(1);
}
if (std::getenv("SLEEPFORDEBUGGER"))
{
std::cout << "Sleeping " << std::getenv("SLEEPFORDEBUGGER") << " seconds, " <<
"attach process " << Poco::Process::id() << " in debugger now." << std::endl;
Thread::sleep(std::stoul(std::getenv("SLEEPFORDEBUGGER")) * 1000);
}
LibreOfficeKit *loKit(lok_init_2(("/" + loSubPath + "/program").c_str(), "file:///user"));
if (!loKit)