diff options
author | Kurtis Rader <krader@skepticism.us> | 2016-05-14 20:35:54 -0700 |
---|---|---|
committer | Kurtis Rader <krader@skepticism.us> | 2016-05-14 20:35:54 -0700 |
commit | ff1d651415a2752e82ec417294f9bdf8c234c10f (patch) | |
tree | f9dce0f5ad2d8a9d160f4090887b34a34fdefcf4 /src/sanity.cpp | |
parent | 149e601743f2ad85df8a3bd0cc857bfd0387ef67 (diff) |
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.
Diffstat (limited to 'src/sanity.cpp')
-rw-r--r-- | src/sanity.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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(); |