implemented --mule-harakiri

This commit is contained in:
roberto@debian32
2011-10-12 01:48:30 +02:00
parent a59c0ae795
commit 85662578e4
7 changed files with 99 additions and 11 deletions
+4 -1
View File
@@ -2282,7 +2282,10 @@ PyObject *py_uwsgi_workers(PyObject * self, PyObject * args) {
zero = PyString_FromString("cheap");
}
else {
if (uwsgi.workers[i + 1].busy) {
if (uwsgi.workers[i + 1].sig) {
zero = PyString_FromFormat("sig%d",uwsgi.workers[i + 1].signum);
}
else if (uwsgi.workers[i + 1].busy) {
zero = PyString_FromString("busy");
}
else {