X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2Fkill.cpp;h=110becd1ab75ac69ba6fa619263e51cd1249ac3c;hb=8d640dc77608bedddb5b00982c23665584f52d21;hp=af346799fd41e4f237d4db9ff126c47319b9df08;hpb=f212b483355d68e93132fb469814e13335d0886b;p=lyx.git diff --git a/src/support/kill.cpp b/src/support/kill.cpp index af346799fd..110becd1ab 100644 --- a/src/support/kill.cpp +++ b/src/support/kill.cpp @@ -3,7 +3,7 @@ * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * - * \author Lars Gullik Bjønnes + * \author Lars Gullik Bjønnes * * Full author contact details are available in file CREDITS. */ @@ -18,8 +18,8 @@ #include #ifdef _WIN32 -#include "debug.h" -#include "os.h" +#include "support/debug.h" +#include "support/os.h" #include #include @@ -30,15 +30,15 @@ namespace lyx { int support::kill(int pid, int sig) { #ifdef _WIN32 - if (pid == (int)GetCurrentProcessId()) + if (pid == (int)GetCurrentProcessId()) return -raise(sig); HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, TRUE, pid); if (!hProcess) { - lyxerr << "kill OpenProcess failed!" << std::endl; + LYXERR0("kill OpenProcess failed!"); return -1; } if (!TerminateProcess(hProcess, sig)) { - lyxerr << "kill process failed!" << std::endl; + LYXERR0("kill process failed!"); CloseHandle(hProcess); return -1; }