On 02/20/10 09:59 PM, Sonia Hamilton wrote:
I guess my real source of confusion is when I send through the ctrl-c, is it first caught by my script or the subprocess?
The TERM signal is sent to the parent and all subprocesses at the same time. So if you do nothing, by default, Ctrl+C should kill the main process and all its children.
This is how I thought I'd do it, but when I ctrl-c the output just flashes and the script keeps running :-(
Not sure what you mean by this - does the parent process keep running, or just the children, or both? Does it print "Removing file..." ?
- Andrew -- You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en.
