Permit threads during rpmReadPackageFile()
authorPanu Matilainen <pmatilai@redhat.com>
Mon, 5 Oct 2009 12:25:59 +0000 (15:25 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Mon, 5 Oct 2009 12:25:59 +0000 (15:25 +0300)
python/rpmts-py.c

index 05c8303..f29df78 100644 (file)
@@ -343,7 +343,9 @@ rpmts_HdrFromFdno(rpmtsObject * s, PyObject *arg)
     if (!PyArg_Parse(arg, "O&:HdrFromFdno", rpmFdFromPyObject, &fd))
        return NULL;
 
+    Py_BEGIN_ALLOW_THREADS;
     rpmrc = rpmReadPackageFile(s->ts, fd, "rpmts_HdrFromFdno", &h);
+    Py_END_ALLOW_THREADS;
     Fclose(fd);
 
     if (rpmrc == RPMRC_OK) {