diff --git a/tests/test_integrations.py b/tests/test_integrations.py index bab7ae4a0..9386deefd 100644 --- a/tests/test_integrations.py +++ b/tests/test_integrations.py @@ -1246,6 +1246,7 @@ def test_catching_system_exit(): @skip_if_on_windows +@pytest.mark.flaky(reruns=3, reruns_delay=1) def test_catching_exit_signal(): stdin_cmd = "kill -SIGHUP @(__import__('os').getpid())\n" out, err, ret = run_xonsh( diff --git a/xonsh/main.py b/xonsh/main.py index 00ee5e5e8..cb710e692 100644 --- a/xonsh/main.py +++ b/xonsh/main.py @@ -528,6 +528,7 @@ def main_xonsh(args): ignore_sigtstp() if ( env["XONSH_INTERACTIVE"] + and sys.stdin.isatty() # In case the interactive mode is forced but no tty (input from pipe). and not any(os.path.isfile(i) for i in env["XONSHRC"]) and not any(os.path.isdir(i) for i in env["XONSHRC_DIR"]) ):