diff options
Diffstat (limited to 'ps-fix-log-xmlrpc-close_all.patch')
-rw-r--r-- | ps-fix-log-xmlrpc-close_all.patch | 22 |
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) { |