the RPC subsystem is no more dependent on cow

This commit is contained in:
Unbit
2013-03-03 13:28:06 +01:00
parent 92e06b1078
commit 773d853bb4
6 changed files with 49 additions and 44 deletions
+5 -4
View File
@@ -334,11 +334,12 @@ PyObject *py_uwsgi_call(PyObject * self, PyObject * args) {
PyObject *py_uwsgi_rpc_list(PyObject * self, PyObject * args) {
uint64_t i;
PyObject *rpc_list = PyTuple_New(uwsgi.shared->rpc_count);
PyObject *rpc_list = PyTuple_New(uwsgi.shared->rpc_count[uwsgi.mywid]);
for (i = 0; i < uwsgi.shared->rpc_count; i++) {
if (uwsgi.rpc_table[i].name[0] != 0) {
PyTuple_SetItem(rpc_list, i, PyString_FromString(uwsgi.rpc_table[i].name));
int pos = (uwsgi.mywid * uwsgi.rpc_max);
for (i = 0; i < uwsgi.shared->rpc_count[uwsgi.mywid]; i++) {
if (uwsgi.rpc_table[pos + i].name[0] != 0) {
PyTuple_SetItem(rpc_list, i, PyString_FromString(uwsgi.rpc_table[pos + i].name));
}
}