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

Ticket #750 (defect)

Opened 1 year ago

Last modified 10 months ago

Cherrypy 3.1 beta and SVN ignore keyboard interrupts

Status: closed (fixed)

Reported by: lakin.wecker@gmail.com Assigned to: lakin
Priority: normal Milestone: 3.1
Component: CherryPy code Keywords: osx
Cc:

OSX 10.4, mac pro.

Change History

11/05/07 20:15:35: Modified by lakin.wecker@gmail.com

import cherrypy

class HelloWorld:
  def index(self):
    return "Hello"
  index.exposed = True
  
cherrypy.tree.mount(HelloWorld(), "/hello", config="entries/config/config.ini")

cherrypy.server.quickstart()
from cherrypy.restsrv.plugins import SignalHandler
SignalHandler(cherrypy.engine).subscribe()
cherrypy.engine.start()

11/13/07 21:15:49: Modified by fumanchu

Try the latest trunk (rev [1830]) and make sure you call engine.block() after start(). The only scenario in which to skip the block() call would be a test where the main thread performed some actions and then called exit() itself.

01/16/08 17:20:07: Modified by fumanchu

  • keywords set to osx.

01/17/08 20:34:08: Modified by lakin

  • owner changed from lakin.wecker@gmail.com to lakin.
  • status changed from new to assigned.

Yeah, adding the cherrypy.engine.block() works here on OSX with python 2.5 and CP Trunk

01/18/08 18:00:26: Modified by fumanchu

  • status changed from assigned to closed.
  • resolution set to fixed.

Added a warning and auto-bus-exit in [1869].

Hosted by WebFaction

Log in as guest/cpguest to create tickets