From ae8ce061629b1edc02ab2d2925e75b6beaf4a6f0 Mon Sep 17 00:00:00 2001 From: Ashod Nakashian Date: Sat, 2 Apr 2016 20:40:09 -0400 Subject: [PATCH] loolwsd: removed unnecessary from pipe messages Change-Id: I5fc310f98764b31fc50f877c28d6076bbb14866f Reviewed-on: https://gerrit.libreoffice.org/23784 Reviewed-by: Ashod Nakashian Tested-by: Ashod Nakashian --- loolwsd/Admin.cpp | 2 +- loolwsd/LOOLBroker.cpp | 2 +- loolwsd/LOOLKit.cpp | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/loolwsd/Admin.cpp b/loolwsd/Admin.cpp index 374b25002..572aba3fe 100644 --- a/loolwsd/Admin.cpp +++ b/loolwsd/Admin.cpp @@ -194,7 +194,7 @@ void AdminRequestHandler::handleWSRequests(HTTPServerRequest& request, HTTPServe { if (std::stoi(tokens[1])) { - IoUtil::writeFIFO(LOOLWSD::BrokerWritePipe, firstLine + " \r\n"); + IoUtil::writeFIFO(LOOLWSD::BrokerWritePipe, firstLine + "\n"); } } catch(std::exception& e) diff --git a/loolwsd/LOOLBroker.cpp b/loolwsd/LOOLBroker.cpp index f6c81d47b..a52931654 100644 --- a/loolwsd/LOOLBroker.cpp +++ b/loolwsd/LOOLBroker.cpp @@ -92,7 +92,7 @@ namespace std::ostringstream message; message << "rmdoc" << " " << _pid << " " - << "\r\n"; + << "\n"; IoUtil::writeFIFO(WriterNotify, message.str()); _pid = -1; } diff --git a/loolwsd/LOOLKit.cpp b/loolwsd/LOOLKit.cpp index bce288f27..b37269b89 100644 --- a/loolwsd/LOOLKit.cpp +++ b/loolwsd/LOOLKit.cpp @@ -697,7 +697,7 @@ private: message << "document" << " " << Process::id() << " " << uri.substr(uri.find_last_of("/") + 1) << " " - << "\r\n"; + << "\n"; IoUtil::writeFIFO(WriterNotify, message.str()); if (_multiView) @@ -1146,7 +1146,7 @@ void lokit_main(const std::string& childRoot, std::ostringstream message; message << "rmdoc" << " " << Process::id() << " " - << "\r\n"; + << "\n"; IoUtil::writeFIFO(WriterNotify, message.str()); close(WriterNotify);