From ca1f826efdefae9d803d358671c0ab775b9bcaef Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Sat, 16 Jan 2010 20:37:26 +0100 Subject: [PATCH] Fixing gui --- unlock/unlock.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/unlock/unlock.cpp b/unlock/unlock.cpp index 8bb5f0b..21f841a 100644 --- a/unlock/unlock.cpp +++ b/unlock/unlock.cpp @@ -35,6 +35,19 @@ void unlock::Close() std::ofstream os("/tmp/mnencdfifo"); os << message; os.close(); + + std::string line; + std::ifstream reply("/tmp/mnencdfifo"); + if (reply.is_open()) + { + while (! reply.eof() ) + { + getline (reply,line); + std::cout << line << std::endl; + } + reply.close(); + } + // now close for real close(); } -- 1.7.9.5