No need for the SLEEPFORDEBUGGER thing any more

As the child processes are pre-spawned and just hang around waiting, there is
ample time to attach one in a debugger in a controlled debugging scenario
anyway.
This commit is contained in:
Tor Lillqvist 2015-04-16 15:23:01 +03:00
parent 27a680457e
commit af3545b897

View file

@ -421,13 +421,6 @@ 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)