added signal sending in uwsgicc

This commit is contained in:
roberto@debian32
2011-06-15 19:05:14 +02:00
parent 7673cdb1aa
commit 984df3bcdf
7 changed files with 67 additions and 4 deletions
+3 -1
View File
@@ -488,9 +488,11 @@ PyObject *py_uwsgi_signal(PyObject * self, PyObject * args) {
return NULL;
}
#ifdef UWSGI_DEBUG
uwsgi_log("sending %d to master\n", uwsgi_signal);
#endif
rlen = write(uwsgi.shared->worker_signal_pipe[1], &uwsgi_signal, 1);
rlen = write(uwsgi.signal_socket, &uwsgi_signal, 1);
if (rlen != 1) {
uwsgi_error("write()");
}