Author: ai0867
Date: Wed Dec  3 13:30:10 2008
New Revision: 31243

URL: http://svn.gna.org/viewcvs/wesnoth?rev=31243&view=rev
Log:
Silenced a warning.

Modified:
    trunk/src/server/server.cpp

Modified: trunk/src/server/server.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/server/server.cpp?rev=31243&r1=31242&r2=31243&view=diff
==============================================================================
--- trunk/src/server/server.cpp (original)
+++ trunk/src/server/server.cpp Wed Dec  3 13:30:10 2008
@@ -1197,9 +1197,11 @@
        // Example config line: 
        // restart_command="./wesnothd-debug -d -c ~/.wesnoth1.5/server.cfg"
        // remember to make new one as a daemon or it will block old one
-       std::system(restart_command.c_str());
-
-       LOG_SERVER << "New server started with command: " << restart_command << 
"\n";
+       if (std::system(restart_command.c_str())) {
+               ERR_SERVER << "Failed to start new server with command: " << 
restart_command << "\n";
+       } else {
+               LOG_SERVER << "New server started with command: " << 
restart_command << "\n";
+       }
 }
 
 std::string server::process_command(const std::string& query, const 
std::string& issuer_name) {


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to