CVSROOT: /cvsroot/wesnoth
Module name: wesnoth
Branch:
Changes by: David White <[EMAIL PROTECTED]> 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";