From bb2ea0c48ad9ea7c791325a0fd2cc954d8ed05f7 Mon Sep 17 00:00:00 2001 From: lotodore Date: Fri, 14 Jan 2011 23:21:36 +0000 Subject: [PATCH] Fixing compiler warning for daemon call. --- src/pokerth_server.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pokerth_server.cpp b/src/pokerth_server.cpp index 51f21455..845b431e 100644 --- a/src/pokerth_server.cpp +++ b/src/pokerth_server.cpp @@ -131,7 +131,11 @@ main(int argc, char *argv[]) // TODO: Hack #ifndef _WIN32 - daemon(0, 0); + if (daemon(0, 0) != 0) + { + cout << "Failed to start daemon." << endl; + return 1; + } #endif signal(SIGTERM, TerminateHandler);