ptahproject/ptah — Issue #91: many times kill -9 needed to stop paster
Author: WouterVH
Created: 2011-11-17 13:34:30+00:00
State: open

I don't know what's causing this, I did not encounter this behaviour in earlier checkouts of ptah
But with checkouts done today (17/11/2011) I have to kill -9 the paster process to actually stop it around half of the times.

wouter@localhost: /opt/dev/ptah-pre-0.1/myapp102 > ../bin/paster serve settings.ini --reload
Starting subprocess with file monitor
2011-11-17 13:27:58,094 INFO [ptah.cms][MainThread] Generating fieldset for content type.
2011-11-17 13:27:58,109 INFO [ptah.config][MainThread] Initializing ptah settings
/opt/dev/ptah-pre-0.1/lib/python2.7/site-packages/SQLAlchemy-0.7.3-py2.7-linux-x86_64.egg/sqlalchemy/engine/default.py:453: SAWarning: Unicode type received non-unicode bind param value.
param.append(processors[key](compiled_params[key]))
Starting server in PID 18846.
serving on 0.0.0.0:6543 view at http://127.0.0.1:6543
Running Sphinx v1.1.2
loading pickled environment... not yet created
Running Sphinx v1.1.2
loading pickled environment... not yet created
^C caught in monitor process
Exiting (-v to see traceback)
wouter@localhost: /opt/dev/ptah-pre-0.1/myapp102 >

so Control-C returns to the commandline as normal, and seems to stop the paster-process,
however it's still running:

wouter@localhost: /opt/dev/ptah-pre-0.1/myapp102 > ps aux|grep ptah
wouter 18846 6.0 1.4 414804 58532 pts/4 Sl 13:27 0:03 /opt/dev/ptah-pre-0.1/bin/python ../bin/paster serve settings.ini --reload

Refreshing the pages in the webbrowser, indicate the http-port is still open, the the browser keeps spinning returning nothing.
Try to kill the process does not work:

wouter@localhost: /opt/dev/ptah-pre-0.1/myapp102 > kill 18846
wouter@localhost: /opt/dev/ptah-pre-0.1/myapp102 > ps aux|grep ptah
wouter 18846 4.5 1.4 414804 58532 pts/4 Sl 13:27 0:04 /opt/dev/ptah-pre-0.1/bin/python ../bin/paster serve settings.ini --reload

So I currently need to do this:

wouter@localhost: /opt/dev/ptah-pre-0.1/myapp102 > kill -9 18846
wouter@localhost: /opt/dev/ptah-pre-0.1/myapp102 > ps aux|grep ptah
wouter@localhost: /opt/dev/ptah-pre-0.1/myapp102 >

Currently this happens around half of the times I start paster, the other times Control-C just works normally.
Don't know yet how to reproduce.