Skip to content

Commit

Permalink
[interactive] Revert SIGCHLD change
Browse files Browse the repository at this point in the history
Since it causes some failures.  I didn't quite get that anyway.
  • Loading branch information
Andy C committed Feb 4, 2022
1 parent 830648a commit 281c220
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/pyos.py
Expand Up @@ -285,9 +285,9 @@ def SignalState_AfterForkingChild():

# More signals from
# https://www.gnu.org/software/libc/manual/html_node/Launching-Jobs.html
# (but not SIGCHLD)
signal.signal(signal.SIGTTOU, signal.SIG_DFL)
signal.signal(signal.SIGTTIN, signal.SIG_DFL)
signal.signal(signal.SIGCHLD, signal.SIG_DFL)


class SignalState(object):
Expand All @@ -314,9 +314,9 @@ def InitInteractiveShell(self, display):

# More signals from
# https://www.gnu.org/software/libc/manual/html_node/Initializing-the-Shell.html
# (but not SIGCHLD)
signal.signal(signal.SIGTTOU, signal.SIG_IGN)
signal.signal(signal.SIGTTIN, signal.SIG_IGN)
signal.signal(signal.SIGCHLD, signal.SIG_IGN)

# Register a callback to receive terminal width changes.
# NOTE: In line_input.c, we turned off rl_catch_sigwinch.
Expand Down

0 comments on commit 281c220

Please sign in to comment.