Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Ticket #667 (defect)

Opened 3 years ago

Last modified 3 years ago

SIGTERM is broken in CherryPy 3.0.1

Status: closed (fixed)

Reported by: hdbsfeq02@sneakemail.com Assigned to: rdelon
Priority: normal Milestone: 3.0
Component: CherryPy code Keywords:
Cc:

Since 3.0.1, SIGTERM causes a backtrace instead of shutting down CherryPy. It seems that the patch for ticket #637 installs SIGHUP and SIGTERM handlers as bound methods, but SIGTERM() is not defined that way. (Notice how SIGHUP() has a 'self' argument while SIGTERM() does not.)

Reverting to CherryPy 3.0.0 make the problem go away.

Here is an excerpt from the backtrace:

Traceback (most recent call last):
  ...
  File "/usr/lib/python2.4/site-packages/CherryPy-3.0.1-py2.4.egg/cherrypy/_cpengine.py", line 93, in start
    self.block()
  File "/usr/lib/python2.4/site-packages/CherryPy-3.0.1-py2.4.egg/cherrypy/_cpengine.py", line 101, in block
    time.sleep(self.autoreload_frequency)
TypeError: SIGTERM() takes at most 2 arguments (3 given)

Change History

03/09/07 12:16:42: Modified by fumanchu

  • status changed from new to closed.
  • resolution set to fixed.
  • description changed.
  • milestone set to 3.0.

Fixed in [1635].

Hosted by WebFaction

Log in as guest/cpguest to create tickets