summaryrefslogtreecommitdiff
path: root/lib/server
diff options
context:
space:
mode:
Diffstat (limited to 'lib/server')
-rw-r--r--lib/server/Daemon.cpp2
-rw-r--r--lib/server/ServerControl.cpp4
-rw-r--r--lib/server/ServerStream.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/server/Daemon.cpp b/lib/server/Daemon.cpp
index 76141b6f..748e6e47 100644
--- a/lib/server/Daemon.cpp
+++ b/lib/server/Daemon.cpp
@@ -702,7 +702,7 @@ int Daemon::Main(const std::string &rConfigFileName)
}
// Delete the PID file
- ::unlink(pidFileName.c_str());
+ EMU_UNLINK(pidFileName.c_str());
// Log
BOX_NOTICE("Terminating daemon");
diff --git a/lib/server/ServerControl.cpp b/lib/server/ServerControl.cpp
index b6cadab3..958302b8 100644
--- a/lib/server/ServerControl.cpp
+++ b/lib/server/ServerControl.cpp
@@ -241,7 +241,7 @@ bool KillServer(const std::string& pid_file, bool WaitForProcess)
#ifdef WIN32
if(WaitForProcess)
{
- int unlink_result = unlink(pid_file.c_str());
+ int unlink_result = EMU_UNLINK(pid_file.c_str());
TEST_EQUAL_LINE(0, unlink_result, std::string("unlink ") + pid_file);
if(unlink_result != 0)
{
@@ -439,7 +439,7 @@ bool StopDaemon(int current_pid, const std::string& pid_file,
TEST_THAT_OR(!ServerIsAlive(current_pid), return false);
#ifdef WIN32
- int unlink_result = unlink(pid_file.c_str());
+ int unlink_result = EMU_UNLINK(pid_file.c_str());
TEST_EQUAL_LINE(0, unlink_result, std::string("unlink ") + pid_file);
if(unlink_result != 0)
{
diff --git a/lib/server/ServerStream.h b/lib/server/ServerStream.h
index db8beaf2..bf508311 100644
--- a/lib/server/ServerStream.h
+++ b/lib/server/ServerStream.h
@@ -208,7 +208,7 @@ public:
}
// unlink anything there
- ::unlink(c[1].c_str());
+ EMU_UNLINK(c[1].c_str());
psocket->Listen(Socket::TypeUNIX, c[1].c_str());
#endif // WIN32