mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-04 04:31:44 +00:00
the RPC subsystem is no more dependent on cow
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user