make sure we really kill the server

This commit is contained in:
Gunter Labes 2007-12-10 19:03:59 +00:00
parent df1d6a5b8d
commit f3b5bc0dcd

View file

@ -20,7 +20,7 @@ ulimit -Ss 2048
ulimit -c unlimited
# send the standard server message to the appropriate server when killing it with ctrl+c
trap "$HOME/bin/send_server_message $SERVER; sleep 2; kill %1; echo -n 'terminated: '; date; exit 0" SIGINT
trap "$HOME/bin/send_server_message $SERVER; sleep 2; killall wesnothd-$SERVER; echo -n 'terminated: '; date; exit 0" SIGINT
while [ true ]
do