Show More
@@ -613,6 +613,11 b' static PyObject *statfiles(PyObject *sel' | |||
|
613 | 613 | int ret, kind; |
|
614 | 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 | 621 | pypath = PySequence_GetItem(names, i); |
|
617 | 622 | if (!pypath) |
|
618 | 623 | goto bail; |
General Comments 0
You need to be logged in to leave comments.
Login now