mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
job_get_from_pid: use canonical pid_t type
This commit is contained in:
parent
8612ac592d
commit
d32e7f5ad7
2 changed files with 2 additions and 2 deletions
|
@ -566,7 +566,7 @@ job_t *parser_t::job_get(job_id_t id) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
job_t *parser_t::job_get_from_pid(int pid) {
|
job_t *parser_t::job_get_from_pid(pid_t pid) {
|
||||||
job_iterator_t jobs;
|
job_iterator_t jobs;
|
||||||
job_t *job;
|
job_t *job;
|
||||||
while ((job = jobs.next())) {
|
while ((job = jobs.next())) {
|
||||||
|
|
|
@ -319,7 +319,7 @@ class parser_t {
|
||||||
job_t *job_get(job_id_t job_id);
|
job_t *job_get(job_id_t job_id);
|
||||||
|
|
||||||
/// Returns the job with the given pid.
|
/// Returns the job with the given pid.
|
||||||
job_t *job_get_from_pid(int pid);
|
job_t *job_get_from_pid(pid_t pid);
|
||||||
|
|
||||||
/// Returns a new profile item if profiling is active. The caller should fill it in. The
|
/// Returns a new profile item if profiling is active. The caller should fill it in. The
|
||||||
/// parser_t will clean it up.
|
/// parser_t will clean it up.
|
||||||
|
|
Loading…
Reference in a new issue