mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-23 10:50:49 +00:00
Shell: Add support for jobspecs in fg/bg/disown/wait
This commit is contained in:
parent
ede0d7c04f
commit
95055d3a38
Notes:
sideshowbarker
2024-07-18 19:11:25 +09:00
Author: https://github.com/alimpfard
Commit: 95055d3a38
Pull-request: https://github.com/SerenityOS/serenity/pull/6588
Issue: https://github.com/SerenityOS/serenity/issues/6578
Reviewed-by: https://github.com/linusg
3 changed files with 157 additions and 47 deletions
|
@ -175,7 +175,7 @@ public:
|
|||
void restore_ios();
|
||||
|
||||
u64 find_last_job_id() const;
|
||||
const Job* find_job(u64 id);
|
||||
const Job* find_job(u64 id, bool is_pid = false);
|
||||
const Job* current_job() const { return m_current_job; }
|
||||
void kill_job(const Job*, int sig);
|
||||
|
||||
|
@ -271,6 +271,7 @@ private:
|
|||
void save_to(JsonObject&);
|
||||
void bring_cursor_to_beginning_of_a_line() const;
|
||||
|
||||
Optional<int> resolve_job_spec(const String&);
|
||||
void cache_path();
|
||||
void add_entry_to_cache(const String&);
|
||||
void stop_all_jobs();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue