Signal handler must take 2 params

Otherwise we get a TypeError
This commit is contained in:
Strahinja Val Markovic 2013-10-17 20:14:56 -07:00
parent acae8e4e9d
commit 6e9a16e90e

View File

@ -38,7 +38,7 @@ def YcmCoreSanityCheck():
# We need to manually call ServerShutdown for the signals that turn down ycmd # We need to manually call ServerShutdown for the signals that turn down ycmd
# because atexit won't handle them. # because atexit won't handle them.
def SetUpSignalHandler(): def SetUpSignalHandler():
def SignalHandler(): def SignalHandler( signum, frame ):
import handlers import handlers
handlers.ServerShutdown() handlers.ServerShutdown()