]> git.lyx.org Git - lyx.git/blobdiff - src/support/kill.cpp
Remove non-copyable idioms
[lyx.git] / src / support / kill.cpp
index af346799fd41e4f237d4db9ff126c47319b9df08..110becd1ab75ac69ba6fa619263e51cd1249ac3c 100644 (file)
@@ -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 <csignal>
 
 #ifdef _WIN32
-#include "debug.h"
-#include "os.h"
+#include "support/debug.h"
+#include "support/os.h"
 
 #include <windows.h>
 #include <cerrno>
@@ -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;
        }