From 231cc5b974ceebbaff919c925c1d928b0c28a23c Mon Sep 17 00:00:00 2001 From: Stephen Webb Date: Tue, 8 Aug 2023 17:46:42 +1000 Subject: [PATCH] Replace multi-process question with an answer --- src/main/cpp/outputstreamwriter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/cpp/outputstreamwriter.cpp b/src/main/cpp/outputstreamwriter.cpp index 90d199319..4ddf93c93 100644 --- a/src/main/cpp/outputstreamwriter.cpp +++ b/src/main/cpp/outputstreamwriter.cpp @@ -81,7 +81,7 @@ void OutputStreamWriter::write(const LogString& str, Pool& p) if (str.length() > 0) { #ifdef LOG4CXX_MULTI_PROCESS - // Why does this need to happen for multiproces?? why?? + // Ensure the logging event is a single write system call to keep events from each process separate size_t bufSize = str.length() * 2; char* rawbuf = new char[bufSize]; ByteBuffer buf(rawbuf, (size_t) bufSize);