diff --git a/loolwsd/DocumentBroker.hpp b/loolwsd/DocumentBroker.hpp index f9ef4075f..9472fb9ec 100644 --- a/loolwsd/DocumentBroker.hpp +++ b/loolwsd/DocumentBroker.hpp @@ -268,6 +268,9 @@ public: void childSocketTerminated(); + /// Get the PID of the associated child process + Poco::Process::PID getPid() const { return _childProcess->getPid(); } + private: /// Sends the .uno:Save command to LoKit. diff --git a/loolwsd/LOOLWSD.cpp b/loolwsd/LOOLWSD.cpp index 953884224..e5912444f 100644 --- a/loolwsd/LOOLWSD.cpp +++ b/loolwsd/LOOLWSD.cpp @@ -809,6 +809,9 @@ private: ws->sendFrame(status.data(), (int) status.size()); } + // Tell the admin console about this new doc + Admin::instance().addDoc(docKey, docBroker->getPid(), docBroker->getFilename(), id); + LOOLWSD::dumpEventTrace(docBroker->getJailId(), id, "NewSession: " + uri); // Let messages flow.