summarylogtreecommitdiffstats
path: root/ps-fix-log-xmlrpc-close_all.patch
diff options
context:
space:
mode:
authorxsmile2018-07-02 22:51:10 +0200
committerxsmile2018-07-02 22:51:10 +0200
commite9b4bfa9b8b176e8b291fe8115e59242e302a6a2 (patch)
tree8d6e021191cf5cf695f4d3beec9cc142f0d043c4 /ps-fix-log-xmlrpc-close_all.patch
parentd1e56fd0fdfbe3d8d7c8c2bfc20b8f800ceb66e5 (diff)
downloadaur-e9b4bfa9b8b176e8b291fe8115e59242e302a6a2.tar.gz
update
Diffstat (limited to 'ps-fix-log-xmlrpc-close_all.patch')
-rw-r--r--ps-fix-log-xmlrpc-close_all.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/ps-fix-log-xmlrpc-close_all.patch b/ps-fix-log-xmlrpc-close_all.patch
new file mode 100644
index 000000000000..1f27201b458d
--- /dev/null
+++ b/ps-fix-log-xmlrpc-close_all.patch
@@ -0,0 +1,22 @@
+--- a/src/thread_worker.cc
++++ b/src/thread_worker.cc
+@@ -113,14 +113,15 @@ ThreadWorker::change_xmlrpc_log() {
+ if (scgi() == NULL)
+ return;
+
+- if (scgi()->log_fd() != -1)
++ if (scgi()->log_fd() != -1) {
+ ::close(scgi()->log_fd());
+-
+- if (m_xmlrpcLog.empty()) {
++ scgi()->set_log_fd(-1);
+ control->core()->push_log("Closed XMLRPC log.");
+- return;
+ }
+
++ if (m_xmlrpcLog.empty())
++ return;
++
+ scgi()->set_log_fd(open(rak::path_expand(m_xmlrpcLog).c_str(), O_WRONLY | O_APPEND | O_CREAT, 0644));
+
+ if (scgi()->log_fd() == -1) {