Commits

Jason R. Coombs  committed 48af029

Added support for terminating the app with Ctrl+C

  • Participants
  • Parent commits 53ec991
  • Tags 1.6

Comments (0)

Files changed (1)

File jaraco/media/index.py

 	cherrypy.config.update({
 		'server.socket_host': '::0',
 		})
+	if hasattr(cherrypy.engine, "signal_handler"):
+		cherrypy.engine.signal_handler.subscribe()
+	if hasattr(cherrypy.engine, "console_control_handler"):
+		cherrypy.engine.console_control_handler.subscribe()
 	cherrypy.engine.start()
 	cherrypy.engine.block()