SLEEPFORDEBUGGER is still useful for debugging, re-introduce that.
This reverts commit af3545b897
.
This commit is contained in:
parent
ed07f1a4e1
commit
8be550056b
1 changed files with 7 additions and 0 deletions
|
@ -489,6 +489,13 @@ int LOOLWSD::childMain()
|
||||||
exit(1);
|
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"));
|
LibreOfficeKit *loKit(lok_init_2(("/" + loSubPath + "/program").c_str(), "file:///user"));
|
||||||
|
|
||||||
if (!loKit)
|
if (!loKit)
|
||||||
|
|
Loading…
Reference in a new issue