Skip to content

Commit

Permalink
remove SIGINFO handling, breaks Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
trehn committed Aug 8, 2017
1 parent 2de8f28 commit 2ba7f1d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions bundlewrap/utils/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from os import _exit, environ, getpid, kill
from os.path import join
from select import select
from signal import signal, SIG_DFL, SIGINFO, SIGINT, SIGQUIT, SIGTERM
from signal import signal, SIG_DFL, SIGINT, SIGQUIT, SIGTERM
import struct
from subprocess import PIPE, Popen
import sys
Expand Down Expand Up @@ -87,7 +87,7 @@ def sigint_handler(*args, **kwargs):
SHUTDOWN_EVENT_HARD.set()


def siginfo_handler(*args, **kwargs):
def sigquit_handler(*args, **kwargs):
"""
This handler is kept short since it interrupts execution of the
main thread. It's safer to handle these events in their own thread
Expand Down Expand Up @@ -182,9 +182,8 @@ def activate(self):
),
), 'a')
self._signal_handler_thread.start()
signal(SIGINFO, siginfo_handler)
signal(SIGINT, sigint_handler)
signal(SIGQUIT, siginfo_handler)
signal(SIGQUIT, sigquit_handler)

def ask(self, question, default, epilogue=None, input_handler=DrainableStdin()):
assert self._active
Expand Down

0 comments on commit 2ba7f1d

Please sign in to comment.