Skip to content

Commit

Permalink
Don't connect SIGINT in DEV mode (because it's used for capture the t…
Browse files Browse the repository at this point in the history
…raceback when spyder freezes, see: spyder-ide#5129).
  • Loading branch information
rlaverde committed Sep 29, 2017
1 parent 21a68cb commit 5643448
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spyder/app/mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,11 @@ def signal_handler(signum, frame=None):
pass
else:
signal.signal(signal.SIGTERM, signal_handler)
signal.signal(signal.SIGINT, signal_handler)
if not DEV:
# Make spyder quit when presing ctrl+C in the console
# In DEV because Ctrl+C doens't quit, because it helps to
# capture the traceback when spyder freezes
signal.signal(signal.SIGINT, signal_handler)

# Use a custom Qt stylesheet
if sys.platform == 'darwin':
Expand Down

0 comments on commit 5643448

Please sign in to comment.