mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 15:14:44 +00:00
Work around setpgid error on older Apple platforms
Expand the #7474 fix to Apple platforms. The issue affects older OS versions, including Mac OS X 10.4.11.
This commit is contained in:
parent
07457bf2f1
commit
c4773d4052
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ int execute_setpgid(pid_t pid, pid_t pgroup, bool is_parent) {
|
|||
FLOGF_SAFE(proc_pgroup, "setpgid(2) returned EPERM. Retrying");
|
||||
continue;
|
||||
}
|
||||
#ifdef __BSD__
|
||||
#if defined(__BSD__) || defined(__APPLE__)
|
||||
// POSIX.1 doesn't specify that zombie processes are required to be considered extant and/or
|
||||
// children of the parent for purposes of setpgid(2). In particular, FreeBSD (at least up to
|
||||
// 12.2) does not consider a child that has already forked, exec'd, and exited to "exist"
|
||||
|
|
Loading…
Reference in a new issue