mirror of
https://github.com/opnsense/src.git
synced 2026-06-14 19:20:18 -04:00
Correct a usage of fnctl that could not be right and results in a
no-op. I assume it was meant that the close-on-exec flag be set here.
This commit is contained in:
parent
85fee3197a
commit
dde97b32ff
1 changed files with 1 additions and 1 deletions
|
|
@ -129,7 +129,7 @@ setjobctl(int on)
|
|||
if (i > 2 || (ttyfd = dup(i)) < 0)
|
||||
goto out;
|
||||
}
|
||||
if (fcntl(ttyfd, FD_CLOEXEC, 1) < 0) {
|
||||
if (fcntl(ttyfd, F_SETFD, FD_CLOEXEC) < 0) {
|
||||
close(ttyfd);
|
||||
ttyfd = -1;
|
||||
goto out;
|
||||
|
|
|
|||
Loading…
Reference in a new issue