Page 1 of 1

CSGO: send CTRL+C to the server

Posted: Sat Jul 25, 2015 8:46 am
by nullable
Hello everyone,

I need send command like SIGINT (CTRL+C) to the server.

Syntax: Select all

@Event
def server_shutdown(game_event):
engine_server.server_command('exit;')


The main reason is to resolve the problem http://forums.sourcepython.com/showthread.php?865-New-release-July-2nd-2015!!&p=5463&viewfull=1#post5463
This problem can be resolved if send CTRL+C after engine_server.server_command('exit;')
How I can do this?

Posted: Sat Jul 25, 2015 11:39 am
by Ayuto
The interrupt signal doesn't solve the actual problem. I guess it's interrupting the shutdown routine, which causes your server to shutdown improperly.
I have commited a fix to fix the crash on unload, so this workaround isn't required.