diff options
author | AnotherTest <ali.mpfard@gmail.com> | 2020-09-07 22:45:31 +0430 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-09-09 20:35:21 +0200 |
commit | 54b453be578e7701ca842301e73ffb6b334e54f6 (patch) | |
tree | 177a404b5e71101f518d6db0d84215ee5db69a36 /Shell/Shell.h | |
parent | c3dbe770243ecc245a5df02e0a1e2cb367d72c31 (diff) | |
download | serenity-54b453be578e7701ca842301e73ffb6b334e54f6.zip |
Shell: Fix event loop processing and backgrounding in subshells
Diffstat (limited to 'Shell/Shell.h')
-rw-r--r-- | Shell/Shell.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Shell/Shell.h b/Shell/Shell.h index 9376800bd2..9f168f8116 100644 --- a/Shell/Shell.h +++ b/Shell/Shell.h @@ -73,6 +73,8 @@ public: constexpr static auto local_init_file_path = "~/.shellrc"; constexpr static auto global_init_file_path = "/etc/shellrc"; + void setup_signals(); + int run_command(const StringView&); bool is_runnable(const StringView&); RefPtr<Job> run_command(const AST::Command&); @@ -224,6 +226,7 @@ private: HashMap<String, String> m_aliases; bool m_is_interactive { true }; + bool m_is_subshell { false }; }; static constexpr bool is_word_character(char c) |