Groups
Groups
Sign in
Groups
Groups
cherrypy-users
Conversations
About
Send feedback
Help
Return a response AND THEN raise systemexit
1 view
Skip to first unread message
Malcolm
unread,
Dec 11, 2009, 9:08:04 AM
12/11/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cherrypy-users
Is there a way to return a response AND THEN raise systemexit(0)?
When we detect a request to shutdown our web server, we would like to
send a confirmation response to the user - and then exit the web
server.
Thank you,
Malcolm
Malcolm
unread,
Dec 13, 2009, 8:11:37 PM
12/13/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cherrypy-users
Here's the exact solution I was looking for - very elegant:
http://code.activestate.com/recipes/442481/
Regards,
Malcolm
Reply all
Reply to author
Forward
0 new messages