added --pause/--suspend/--resume

This commit is contained in:
roberto@sirius
2011-11-10 09:38:32 +01:00
parent f9ad5e4144
commit 3a099d0b2e
6 changed files with 51 additions and 0 deletions
+3
View File
@@ -2576,6 +2576,9 @@ PyObject *py_uwsgi_workers(PyObject * self, PyObject * args) {
if (uwsgi.workers[i + 1].cheaped) {
zero = PyString_FromString("cheap");
}
else if (uwsgi.workers[i + 1].suspended) {
zero = PyString_FromString("pause");
}
else {
if (uwsgi.workers[i + 1].sig) {
zero = PyString_FromFormat("sig%d",uwsgi.workers[i + 1].signum);