X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FServerSocket.cpp;h=2c753570add4e49daeb1ec57e7f3fdb90c441e36;hb=24fe5b08c0e1dfb739738acb6fc995da7315d35f;hp=d84349e1f4cd829392bb656f5578c24b3b8f50a0;hpb=e7bb71ff4ebf16351ab238b5cb7514173dd4f84d;p=lyx.git diff --git a/src/ServerSocket.cpp b/src/ServerSocket.cpp index d84349e1f4..2c753570ad 100644 --- a/src/ServerSocket.cpp +++ b/src/ServerSocket.cpp @@ -16,13 +16,13 @@ #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");