]> git.lyx.org Git - lyx.git/blobdiff - src/support/syscall.C
Various fixes look at ChangeLog
[lyx.git] / src / support / syscall.C
index f9264cd96fadd20d10b74c84082ed31b92094add..cea3980137568f37effce1f5e9967f7b68072582 100644 (file)
@@ -9,12 +9,12 @@
 #include <sys/wait.h>
 #include <csignal>
 #include <cstdlib>
-#include <cstdio>
 #include <unistd.h>
 #include "debug.h"
 #include "syscall.h"
 #include "syscontr.h"
 #include "support/lstrings.h"
+#include "support/lyxlib.h"
 
 Systemcalls::Systemcalls() {
        pid = 0; // No child yet
@@ -34,7 +34,7 @@ Systemcalls::~Systemcalls() {
 #if 0
        // If the child is alive, we have to brutally kill it
        if (getpid() != 0) {
-               ::kill(getpid(), SIGKILL);
+               lyx::kill(getpid(), SIGKILL);
        }
 #endif
 }
@@ -78,7 +78,7 @@ void Systemcalls::kill(int /*tolerance*/) {
                lyxerr << "LyX: Can't kill non-existing process." << endl;
                return;
        }
-       int ret = ::kill(getpid(), SIGHUP);
+       int ret = lyx::kill(getpid(), SIGHUP);
        bool wait_for_death = true;
        if (ret != 0) {
                if (errno == ESRCH) {
@@ -205,7 +205,7 @@ void back(string cmd, int retval)
 }
 
 
-int main(int, char**)
+int main(int, char **)
 {
        
        SystemcallsSingletoncontroller::Startcontroller starter;