From 6e9a16e90ec6ba09e96561f8e3a7fbefa2d366cc Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Thu, 17 Oct 2013 20:14:56 -0700 Subject: [PATCH] Signal handler must take 2 params Otherwise we get a TypeError --- python/ycm/server/ycmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/ycm/server/ycmd.py b/python/ycm/server/ycmd.py index 036712b1..4d75f351 100755 --- a/python/ycm/server/ycmd.py +++ b/python/ycm/server/ycmd.py @@ -38,7 +38,7 @@ def YcmCoreSanityCheck(): # We need to manually call ServerShutdown for the signals that turn down ycmd # because atexit won't handle them. def SetUpSignalHandler(): - def SignalHandler(): + def SignalHandler( signum, frame ): import handlers handlers.ServerShutdown()