CSGO: send CTRL+C to the server

Please post any questions about developing your plugin here. Please use the search function before posting!
nullable
Senior Member
Posts: 137
Joined: Sat Nov 08, 2014 7:22 pm

CSGO: send CTRL+C to the server

Postby nullable » Sat Jul 25, 2015 8:46 am

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?
User avatar
Ayuto
Project Leader
Posts: 2195
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Postby Ayuto » Sat Jul 25, 2015 11:39 am

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.

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 131 guests