File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1279,7 +1279,7 @@ def _confirm_exit(self):
1279
1279
self .log .critical (_ ("Shutdown confirmed" ))
1280
1280
# schedule stop on the main thread,
1281
1281
# since this might be called from a signal handler
1282
- self .io_loop .add_callback (self .io_loop .stop )
1282
+ self .io_loop .add_callback_from_signal (self .io_loop .stop )
1283
1283
return
1284
1284
else :
1285
1285
print (_ ("No answer for 5s:" ), end = ' ' )
@@ -1288,7 +1288,7 @@ def _confirm_exit(self):
1288
1288
# set it back to original SIGINT handler
1289
1289
# use IOLoop.add_callback because signal.signal must be called
1290
1290
# from main thread
1291
- self .io_loop .add_callback (self ._restore_sigint_handler )
1291
+ self .io_loop .add_callback_from_signal (self ._restore_sigint_handler )
1292
1292
1293
1293
def _signal_stop (self , sig , frame ):
1294
1294
self .log .critical (_ ("received signal %s, stopping" ), sig )
You can’t perform that action at this time.
0 commit comments