Sigterm Handler causing exception

Christian Holme cholme at
Sun Feb 13 10:27:55 GMT 2011

I am fairly new to using offlineimap and I have encountered the following problem:
When I send the SIGTERM signal to offlineimap, it exits with the following exception:

    Main program terminated with exception:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/site-packages/offlineimap/", line 344, in run
      File "/usr/lib/python2.7/site-packages/offlineimap/", line 125, in exitnotifymonitorloop
        thrd = exitthreads.get(True, 60)
      File "/usr/lib/python2.7/", line 177, in get
      File "/usr/lib/python2.7/", line 257, in wait
    TypeError: sigterm_handler() takes exactly 3 arguments (2 given)

    No debug messages were logged for MainThread.

Now, since offlineimap does have a Sigterm handler, this does not seem to be "working as intended".

If I understand it correctly, the problem lies wihtin the call of the Sigterm handler. So I went into the source code
and removed the 'self' argument from it and recompiled. Now it seems to be working correctly (writing out
"terminating..." and exiting). 
Now, since I do not really know any Python and therefore do not know what my problem really was, so I am asking here. 

Any help would be much appreciated!


More information about the OfflineIMAP-project mailing list