diff options
author | AnotherTest <ali.mpfard@gmail.com> | 2020-12-06 20:52:43 +0330 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-12-08 23:34:38 +0100 |
commit | 59b46a1f515858b6c407185a845c2d9fc34c8fb9 (patch) | |
tree | 23faf2f8613d2060daab90afcd425c0888b2a569 /Shell/Job.h | |
parent | 48a1f7e55cdd1a38a72744ebccde63f353f779ab (diff) | |
download | serenity-59b46a1f515858b6c407185a845c2d9fc34c8fb9.zip |
Shell: Show termination signal if job did not exit cleanly
Diffstat (limited to 'Shell/Job.h')
-rw-r--r-- | Shell/Job.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Shell/Job.h b/Shell/Job.h index 9a37ba976d..1be90d3bf7 100644 --- a/Shell/Job.h +++ b/Shell/Job.h @@ -84,6 +84,7 @@ public: void disown() { m_should_be_disowned = true; } bool is_running_in_background() const { return m_running_in_background; } bool should_announce_exit() const { return m_should_announce_exit; } + bool should_announce_signal() const { return m_should_announce_signal; } bool is_suspended() const { return m_is_suspended; } void unblock() const; @@ -100,6 +101,7 @@ public: } void set_should_announce_exit(bool value) { m_should_announce_exit = value; } + void set_should_announce_signal(bool value) { m_should_announce_signal = value; } void deactivate() const { m_active = false; } @@ -121,6 +123,7 @@ private: bool m_exited { false }; bool m_running_in_background { false }; bool m_should_announce_exit { false }; + bool m_should_announce_signal { true }; int m_exit_code { -1 }; int m_term_sig { -1 }; Core::ElapsedTimer m_command_timer; |