]> git.lyx.org Git - lyx.git/blobdiff - src/ServerSocket.cpp
* lyx_1_6.py:
[lyx.git] / src / ServerSocket.cpp
index d84349e1f4cd829392bb656f5578c24b3b8f50a0..2c753570add4e49daeb1ec57e7f3fdb90c441e36 100644 (file)
 
 #include "ServerSocket.h"
 
-#include "support/debug.h"
 #include "FuncRequest.h"
 #include "LyXAction.h"
 #include "LyXFunc.h"
 
 #include "frontends/Application.h"
 
+#include "support/debug.h"
 #include "support/environment.h"
 #include "support/FileName.h"
 #include "support/socktools.h"
@@ -52,7 +52,7 @@ ServerSocket::ServerSocket(LyXFunc * f, FileName const & addr)
          address_(addr)
 {
        if (fd_ == -1) {
-               lyxerr << "lyx: Disabling LyX socket." << endl;
+               LYXERR(Debug::LYXSERVER, "lyx: Disabling LyX socket.");
                return;
        }
 
@@ -80,7 +80,8 @@ ServerSocket::~ServerSocket()
                theApp()->unregisterSocketCallback(fd_);
                if (::close(fd_) != 0)
                        lyxerr << "lyx: Server socket " << fd_
-                              << " IO error on closing: " << strerror(errno);
+                              << " IO error on closing: " << strerror(errno)
+                              << endl;
        }
        address_.removeFile();
        LYXERR(Debug::LYXSERVER, "lyx: Server socket quitting");