CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     David White <[EMAIL PROTECTED]> 05/03/03 04:21:26

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.67&tr2=1.68&r1=text&r2=text

Patches:
Index: wesnoth/src/server/server.cpp
diff -u wesnoth/src/server/server.cpp:1.67 wesnoth/src/server/server.cpp:1.68
--- wesnoth/src/server/server.cpp:1.67  Thu Mar  3 04:19:16 2005
+++ wesnoth/src/server/server.cpp       Thu Mar  3 04:21:26 2005
@@ -916,7 +916,7 @@
                        if(pid < 0) {
                                std::cerr << "Could not fork and run as a 
daemon\n";
                                return -1;
-                       } else {
+                       } else if(pid > 0) {
                                std::cout << "Started wesnothd as a daemon with 
process id " << pid << "\n";
                                return 0;
                        }


Reply via email to