mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:28:12 +00:00
Shell: Put children in their own process groups and fix job control
This commit fixes job control by putting children in their own process group, and proxying TTY signals to active jobs. This also cleans up the code around builtin_disown a bit to use the newer job interfaces.
This commit is contained in:
parent
3a7a689b87
commit
151e4d41ed
5 changed files with 49 additions and 35 deletions
|
@ -111,6 +111,8 @@ public:
|
|||
|
||||
u64 find_last_job_id() const;
|
||||
const Job* find_job(u64 id);
|
||||
const Job* current_job() const { return m_current_job; }
|
||||
void kill_job(const Job*, int sig);
|
||||
|
||||
String get_history_path();
|
||||
void load_history();
|
||||
|
@ -163,6 +165,7 @@ private:
|
|||
|
||||
void cache_path();
|
||||
void stop_all_jobs();
|
||||
const Job* m_current_job { nullptr };
|
||||
|
||||
virtual void custom_event(Core::CustomEvent&) override;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue