diff options
| author | Reiner Herrmann <reiner@reiner-h.de> | 2011-01-26 16:38:04 +0100 |
|---|---|---|
| committer | Reiner Herrmann <reiner@reiner-h.de> | 2011-01-26 16:38:04 +0100 |
| commit | c40db03137e77317f37b1822481feb28a01f6e2c (patch) | |
| tree | a037f1cad0bb95510cae46d7832ce0e95f7e9854 | |
| parent | 239eafca2c64f13f580dfa4359ff6fce31608b7c (diff) | |
start server as child, not as parent; fixes terminal fuckup problem on exit
| -rw-r--r-- | src/game.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -99,7 +99,7 @@ void start_game(const bool servermode, const char* addr, const char* port, const if(servermode) { pid_t child = fork(); - server_process = (child > 0); + server_process = (child == 0); } if(server_process) // Start server and connect to localhost |
