1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:37:34 +00:00

Shell: Warn the user about active jobs on exit

And make sure that the user means to exit and kill current jobs before exiting.
This commit is contained in:
AnotherTest 2020-05-25 02:32:41 +04:30 committed by Andreas Kling
parent c23c354779
commit b4ca563637
2 changed files with 12 additions and 0 deletions

View file

@ -186,6 +186,7 @@ private:
ExitCodeOrContinuationRequest::ContinuationRequest m_should_continue { ExitCodeOrContinuationRequest::Nothing };
StringBuilder m_complete_line_builder;
bool m_should_break_current_command { false };
bool m_should_ignore_jobs_on_next_exit { false };
};
static constexpr bool is_word_character(char c)