Declare the set of handled signals in only one place

This commit is contained in:
Kovid Goyal
2022-06-05 08:01:26 +05:30
parent f29039db29
commit c004fd1f4d
4 changed files with 49 additions and 55 deletions
+1 -1
View File
@@ -329,7 +329,7 @@ ensure_state(DiskCache *self) {
int ret;
if (self->fully_initialized) return true;
if (!self->loop_data_inited) {
if (!init_loop_data(&self->loop_data)) { PyErr_SetFromErrno(PyExc_OSError); return false; }
if (!init_loop_data(&self->loop_data, 0)) { PyErr_SetFromErrno(PyExc_OSError); return false; }
self->loop_data_inited = true;
}
if (!self->currently_writing.hash_key) {