Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76961fa commit 1134b0dCopy full SHA for 1134b0d
1 file changed
Modules/faulthandler.c
@@ -1282,8 +1282,8 @@ void _PyFaulthandler_Fini(void)
1282
1283
#ifdef FAULTHANDLER_LATER
1284
/* later */
1285
- cancel_dump_tracebacks_later();
1286
if (thread.cancel_event) {
+ cancel_dump_tracebacks_later();
1287
PyThread_release_lock(thread.cancel_event);
1288
PyThread_free_lock(thread.cancel_event);
1289
thread.cancel_event = NULL;
@@ -1296,8 +1296,8 @@ void _PyFaulthandler_Fini(void)
1296
1297
#ifdef FAULTHANDLER_WATCHDOG
1298
/* file watchdog */
1299
- cancel_file_watchdog();
1300
if (watchdog.cancel_event) {
+ cancel_file_watchdog();
1301
PyThread_release_lock(watchdog.cancel_event);
1302
PyThread_free_lock(watchdog.cancel_event);
1303
watchdog.cancel_event = NULL;
0 commit comments