diff options
author | thilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2006-05-04 13:59:58 +0000 |
---|---|---|
committer | thilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2006-05-04 13:59:58 +0000 |
commit | 590018b5cd476a4f2ee8963f5342d0a6c5adcdcb (patch) | |
tree | 77b0a8097c22760e6d13644b4bbf94b64c78fd10 /code/unix | |
parent | 01c266dda2a707782bc6c2d58c7c8ea3f19803ba (diff) | |
download | ioquake3-aero-590018b5cd476a4f2ee8963f5342d0a6c5adcdcb.tar.gz ioquake3-aero-590018b5cd476a4f2ee8963f5342d0a6c5adcdcb.zip |
- Added SV_Shutdown to Linux signal handler to ensure that clients don't hang when server gets killed, as suggested by Tony J. White
- Added newline to final message sent to clients.
- Added check for whether client is running at all before CL_Shutdown runs through.
git-svn-id: svn://svn.icculus.org/quake3/trunk@738 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/unix')
-rw-r--r-- | code/unix/linux_signals.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/code/unix/linux_signals.c b/code/unix/linux_signals.c index f9317ce..3e95f54 100644 --- a/code/unix/linux_signals.c +++ b/code/unix/linux_signals.c @@ -46,6 +46,7 @@ static void signal_handler(int sig) // bk010104 - replace this... (NOTE TTimo hu // rcg08312005 Agreed: changed to CL_Shutdown... --ryan. CL_Shutdown(); #endif + SV_Shutdown("Signal caught"); Sys_Exit(0); // bk010104 - abstraction NOTE TTimo send a 0 to avoid DOUBLE SIGNAL FAULT } |