diff options
author | Matt Wilson <msw@redhat.com> | 1999-07-21 06:17:18 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 1999-07-21 06:17:18 +0000 |
commit | 236a5e87d45c11a8fe502129a774cabc445e6222 (patch) | |
tree | 710516e786e253adf3b27d5c72c0e8a282888130 /rpmmodule | |
parent | 4cc6ee7a17bc72328c618798b48d965b619f74a0 (diff) | |
download | anaconda-236a5e87d45c11a8fe502129a774cabc445e6222.tar.gz anaconda-236a5e87d45c11a8fe502129a774cabc445e6222.tar.xz anaconda-236a5e87d45c11a8fe502129a774cabc445e6222.zip |
release locks
Diffstat (limited to 'rpmmodule')
-rw-r--r-- | rpmmodule/rpmmodule.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/rpmmodule/rpmmodule.c b/rpmmodule/rpmmodule.c index f4e72aa95..c1b9d361c 100644 --- a/rpmmodule/rpmmodule.c +++ b/rpmmodule/rpmmodule.c @@ -306,8 +306,9 @@ static PyObject * rpmHeaderFromList(PyObject * self, PyObject * args) { } list = PyList_New(0); - + Py_BEGIN_ALLOW_THREADS header = headerRead(fd, HEADER_MAGIC_YES); + Py_END_ALLOW_THREADS while (header) { h = (hdrObject *) PyObject_NEW(PyObject, &hdrType); h->h = header; @@ -322,7 +323,9 @@ static PyObject * rpmHeaderFromList(PyObject * self, PyObject * args) { Py_DECREF(h); + Py_BEGIN_ALLOW_THREADS header = headerRead(fd, HEADER_MAGIC_YES); + Py_END_ALLOW_THREADS } fdClose(fd); |