Fixing gui
[mnenc] / unlock / unlock.cpp
index 8bb5f0b..21f841a 100644 (file)
@@ -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();
 }