On Fri, Feb 22, 2008 at 8:32 AM, Eric Ongerth <[EMAIL PROTECTED]> wrote: > While learning to use Pylons, on occasion I've noticed that my site in > development still responds to http even after I have pressed Ctrl-C in > the shell window in which I was running paster serve --reload > development.ini.
There are always cases where daemon programs don't quit properly. The behavior is OS specific and sometimes even Linux distribution specific (meaning it's probably something in how the kernel was compiled, but who knows what it is). I've seen it with Quixote applications on some systems, but I'm not sure if I've seen it with Pylons. Normally the problem manifests itself when you try to start the server and can't because the port is already in use, or the application is "stuck" (it's running but not responding to requests). In this case you have to manually find the proccesses and kill them (possibly with "kill -9" if they refuse to die), or write a script that's smart enough to do that. Another annoyance of Python is that ctrl-C is delayed when executing C code. It will only quit after the C function exits. There's nothing we can do about that short of rewriting the Python interpreter. -- Mike Orr <[EMAIL PROTECTED]> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
