mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:37:44 +00:00
Shell: Avoid messing with sigaction while waiting for a child
This commit is contained in:
parent
70a213a6ec
commit
d5e9213683
3 changed files with 10 additions and 11 deletions
|
@ -115,6 +115,8 @@ public:
|
|||
void highlight(Line::Editor&) const;
|
||||
Vector<Line::CompletionSuggestion> complete(const Line::Editor&);
|
||||
|
||||
bool is_waiting_for(pid_t pid) const { return m_waiting_for_pid == pid; }
|
||||
|
||||
String get_history_path();
|
||||
void load_history();
|
||||
void save_history();
|
||||
|
@ -187,6 +189,7 @@ private:
|
|||
StringBuilder m_complete_line_builder;
|
||||
bool m_should_break_current_command { false };
|
||||
bool m_should_ignore_jobs_on_next_exit { false };
|
||||
pid_t m_waiting_for_pid { -1 };
|
||||
};
|
||||
|
||||
static constexpr bool is_word_character(char c)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue