1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:28:12 +00:00

Shell: Handle signals asynchronously

Fixes #2717
This commit is contained in:
Tom 2020-07-06 15:49:11 -06:00 committed by Andreas Kling
parent 6751d03ea7
commit 6dfd503518
3 changed files with 7 additions and 17 deletions

View file

@ -72,8 +72,6 @@ public:
constexpr static auto local_init_file_path = "~/.shellrc";
constexpr static auto global_init_file_path = "/etc/shellrc";
bool is_accepting_signals() const { return m_is_accepting_signals; }
int run_command(const StringView&);
RefPtr<Job> run_command(AST::Command&);
bool run_file(const String&, bool explicitly_invoked = true);
@ -183,7 +181,6 @@ private:
StringBuilder m_complete_line_builder;
bool m_should_ignore_jobs_on_next_exit { false };
bool m_is_accepting_signals { true };
pid_t m_pid { 0 };
HashMap<String, RefPtr<AST::Value>> m_local_variables;