celery/celery — pull request #944 by zllak (2012-08-28 09:05:15+00:00)
Title: fix issue in gevent when killing celery, fixes #911 and #936

gevent in version prior to 1.0 does not work well with signals, and as it
doesn't monkey patch them, signal handlers must be specified using the
gevent.signal method.
Another issue is that the interface for handlers is not the same
with signal.signal and gevent.signal, as gevent.signal does not
call the handler will the signum and the frame.
When celery will depends on gevent 1.0 (still not stable), this fix
won't be necessary.