added cppcheck option, improved multicast

This commit is contained in:
roberto@quantal64
2012-09-29 09:16:09 +02:00
parent dafe3bb12c
commit 51b9b5d070
12 changed files with 265 additions and 229 deletions
+6 -1
View File
@@ -10,7 +10,7 @@ PyObject *py_uwsgi_signal_wait(PyObject * self, PyObject * args) {
struct wsgi_request *wsgi_req = current_wsgi_req();
int wait_for_specific_signal = 0;
uint8_t uwsgi_signal = 0;
uint8_t received_signal;
int received_signal;
wsgi_req->signal_received = -1;
@@ -30,6 +30,11 @@ PyObject *py_uwsgi_signal_wait(PyObject * self, PyObject * args) {
received_signal = uwsgi_signal_wait(-1);
}
if (received_signal < 0) {
UWSGI_GET_GIL;
return PyErr_Format(PyExc_SystemError, "error waiting for signal");
}
wsgi_req->signal_received = received_signal;
UWSGI_GET_GIL;