##// END OF EJS Templates
osutil: make statfiles check for interrupts periodically...
Bryan O'Sullivan -
r26983:f9f2f29c default
parent child Browse files
Show More
@@ -613,6 +613,11 static PyObject *statfiles(PyObject *sel
613 int ret, kind;
613 int ret, kind;
614 char *path;
614 char *path;
615
615
616 /* With a large file count or on a slow filesystem,
617 don't block signals for long (issue4878). */
618 if ((i % 1000) == 999 && PyErr_CheckSignals() == -1)
619 goto bail;
620
616 pypath = PySequence_GetItem(names, i);
621 pypath = PySequence_GetItem(names, i);
617 if (!pypath)
622 if (!pypath)
618 goto bail;
623 goto bail;
General Comments 0
You need to be logged in to leave comments. Login now