mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-05 08:11:15 -03:00
Fix a misleading comment
This commit is contained in:
@@ -19,7 +19,7 @@ static bool can_wait_on_job(const std::shared_ptr<job_t> &j) {
|
||||
return j->is_constructed() && !j->is_foreground() && !j->is_stopped();
|
||||
}
|
||||
|
||||
/// \return true if a wait handle matches a pid and/or a process name.
|
||||
/// \return true if a wait handle matches a pid or a process name. Exactly one should be passed.
|
||||
static bool wait_handle_matches(pid_t pid, const wchar_t *proc_name, const wait_handle_ref_t &wh) {
|
||||
assert((pid > 0 || proc_name) && "Must specify either pid or proc_name");
|
||||
return (pid > 0 && contains(wh->pids, pid)) ||
|
||||
|
||||
Reference in New Issue
Block a user