summaryrefslogtreecommitdiffstats
path: root/wsd/Admin.hpp
diff options
context:
space:
mode:
authorPranav Kant <pranavk@collabora.co.uk>2017-08-21 20:01:42 +0530
committerPranav Kant <pranavk@collabora.co.uk>2017-08-21 20:06:11 +0530
commita9522f38aa1e71d130e0185a9efb0fe917628e81 (patch)
treec4274f3bc92b95fbdeeeac79f1776c103fb3f8bd /wsd/Admin.hpp
parentwsd: don't write until forkit write pipe is ready (diff)
downloadonline-a9522f38aa1e71d130e0185a9efb0fe917628e81.tar.gz
online-a9522f38aa1e71d130e0185a9efb0fe917628e81.zip
wsd: Notify forkit conditionally about rlimits
No need to notify the forkit very early when loolwsd is initializing and forkit pipes are not set. Forkit is notified of rlimits anyway explicitly in the URL when it is initialized; no need to try to initialize it again. Change-Id: I9fde13e42f6e6393da7cf245ed979538d715319a
Diffstat (limited to 'wsd/Admin.hpp')
-rw-r--r--wsd/Admin.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/wsd/Admin.hpp b/wsd/Admin.hpp
index 54b9a8e76b..16dc3363ff 100644
--- a/wsd/Admin.hpp
+++ b/wsd/Admin.hpp
@@ -108,10 +108,11 @@ public:
void dumpState(std::ostream& os) override;
const DocProcSettings& getDefDocProcSettings() const { return _defDocProcSettings; }
- void setDefDocProcSettings(const DocProcSettings& docProcSettings)
+ void setDefDocProcSettings(const DocProcSettings& docProcSettings, bool notifyKit)
{
_defDocProcSettings = docProcSettings;
- notifyForkit();
+ if (notifyKit)
+ notifyForkit();
}
private: