wesnoth-cvs-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wesnoth-cvs-commits] wesnoth/src/server server.cpp


From: David White
Subject: [Wesnoth-cvs-commits] wesnoth/src/server server.cpp
Date: Wed, 02 Mar 2005 23:26:04 -0500

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     David White <address@hidden>    05/03/03 04:26:04

Modified files:
        src/server     : server.cpp 

Log message:
        added support for running wesnothd as a daemon

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/server/server.cpp.diff?tr1=1.68&tr2=1.69&r1=text&r2=text

Patches:
Index: wesnoth/src/server/server.cpp
diff -u wesnoth/src/server/server.cpp:1.68 wesnoth/src/server/server.cpp:1.69
--- wesnoth/src/server/server.cpp:1.68  Thu Mar  3 04:21:26 2005
+++ wesnoth/src/server/server.cpp       Thu Mar  3 04:26:04 2005
@@ -920,6 +920,8 @@
                                std::cout << "Started wesnothd as a daemon with 
process id " << pid << "\n";
                                return 0;
                        }
+
+                       setsid();
 #endif
                } else if(val[0] == '-') {
                        std::cerr << "unknown option: " << val << "\n";




reply via email to

[Prev in Thread] Current Thread [Next in Thread]