File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -536,7 +536,8 @@ def __enter__(self):
536
536
signal .signal (signal .SIGWINCH , self .sigwinch_handler )
537
537
signal .signal (signal .SIGTSTP , self .sigtstp_handler )
538
538
except ValueError :
539
- pass # Ignore "signal only works in main thread"
539
+ pass # Ignore "signal only works in main thread"
540
+ # This turns off resize detection and ctrl-z suspension.
540
541
541
542
self .orig_meta_path = sys .meta_path
542
543
if self .watcher :
@@ -554,7 +555,8 @@ def __exit__(self, *args):
554
555
signal .signal (signal .SIGWINCH , self .orig_sigwinch_handler )
555
556
signal .signal (signal .SIGTSTP , self .orig_sigtstp_handler )
556
557
except ValueError :
557
- pass # Ignore "signal only works in main thread"
558
+ pass # Ignore "signal only works in main thread"
559
+ # This turns off resize detection and ctrl-z suspension.
558
560
559
561
sys .meta_path = self .orig_meta_path
560
562
You can’t perform that action at this time.
0 commit comments