#include "syscall.h"
#include "syscontr.h"
#include "support/lstrings.h"
+#include "support/lyxlib.h"
Systemcalls::Systemcalls() {
pid = 0; // No child yet
#if 0
// If the child is alive, we have to brutally kill it
if (getpid() != 0) {
- ::kill(getpid(), SIGKILL);
+ lyx::kill(getpid(), SIGKILL);
}
#endif
}
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) {