From db55ca9a2e8df62cca40975645591d93abf299fa Mon Sep 17 00:00:00 2001 From: Lunaphied Date: Fri, 21 Feb 2025 01:02:04 +0000 Subject: [PATCH] hotfix for releng scripts, fixes #440 Change-Id: I33b29fbf3920a2d4fb53b58db477dff5bf7a1af1 --- releng/__init__.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/releng/__init__.py b/releng/__init__.py index dc254ed7f..ea7d1bb9b 100644 --- a/releng/__init__.py +++ b/releng/__init__.py @@ -1,4 +1,13 @@ from xonsh.main import setup +import signal + +# This is a workaround for https://github.com/xonsh/xonsh/issues/5244 +# Matching https://github.com/xonsh/xonsh/blob/71d4920ac5c16f2ef37da88b3f563c25c585fb82/xonsh/main.py#L519-L525 +def func_sig_ttin_ttou(n, f): + pass + +signal.signal(signal.SIGTTIN, func_sig_ttin_ttou) +signal.signal(signal.SIGTTOU, func_sig_ttin_ttou) setup() del setup