mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:57:43 +00:00
Shell: Never assign equal job ids to two different jobs
Since the last job need not have an ID of size()-1, we need to find the max job id and give that+1 out
This commit is contained in:
parent
790915da54
commit
ce61cad933
2 changed files with 17 additions and 5 deletions
|
@ -117,6 +117,8 @@ public:
|
|||
|
||||
bool is_waiting_for(pid_t pid) const { return m_waiting_for_pid == pid; }
|
||||
|
||||
u64 find_last_job_id() const;
|
||||
|
||||
String get_history_path();
|
||||
void load_history();
|
||||
void save_history();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue