From ff1d651415a2752e82ec417294f9bdf8c234c10f Mon Sep 17 00:00:00 2001 From: Kurtis Rader Date: Sat, 14 May 2016 20:35:54 -0700 Subject: rename get_is_interactive and remove stupid test I'm doing this as part of fixing issue #2980. The code for managing tty modes and job control is a horrible mess. This is a very tiny step towards improving the situation. --- src/sanity.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/sanity.cpp') diff --git a/src/sanity.cpp b/src/sanity.cpp index d6da40f4..895112ca 100644 --- a/src/sanity.cpp +++ b/src/sanity.cpp @@ -18,8 +18,7 @@ void sanity_lose() { } int sanity_check() { - if (!insane) - if (get_is_interactive()) history_sanity_check(); + if (!insane && shell_is_interactive()) history_sanity_check(); if (!insane) reader_sanity_check(); if (!insane) kill_sanity_check(); if (!insane) proc_sanity_check(); -- cgit v1.2.3