Prevent respawning of childprocesses

Anfernee Jervis <[email protected]>
Newsgroups gmane.comp.python.cherrypy
Message-ID <[email protected]>
I currently have a script that spawns a few childprocesses and then starts 
a cherrypy server. However I've run into the problem where whenever I edit 
the code on the script, the childprocesses are respawned and temporarily 
orphaned until I issue a ctrl + c to kill the main process. I end up having 
the main process, and an extra set of child processes (if the script spawns 
2, ill end up with 4 but only the recently spawned ones will be used). 

How can I stop cherrypy from respawning the process? If I cant do that then 
how can I set cherrypy to terminate the main process before starting it 
again? The childprocesses are daemons and should terminate if the main 
process terminates.

Another solution I have in mind is a clean up function that execute right 
before cherrypy respawns the main process. Is that possible?

Thanks.

-- 
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cherrypy-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
To post to this group, send email to cherrypy-users-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
Visit this group at https://groups.google.com/group/cherrypy-users.
For more options, visit https://groups.google.com/d/optout.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.