mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-30 11:21:15 -03:00
Use internal job ids in builtin_wait
This avoids any potential issues due to recycled job IDs. No user visible change.
This commit is contained in:
@@ -389,8 +389,10 @@ class parser_t : public std::enable_shared_from_this<parser_t> {
|
||||
void job_promote(job_t *job);
|
||||
|
||||
/// Return the job with the specified job id. If id is 0 or less, return the last job used.
|
||||
job_t *job_get(job_id_t job_id);
|
||||
const job_t *job_get(job_id_t job_id) const;
|
||||
const job_t *job_with_id(job_id_t job_id) const;
|
||||
|
||||
/// Return the job with the specified internal job id.
|
||||
const job_t *job_with_internal_id(internal_job_id_t job_id) const;
|
||||
|
||||
/// Returns the job with the given pid.
|
||||
job_t *job_get_from_pid(pid_t pid) const;
|
||||
|
||||
Reference in New Issue
Block a user