diff options
-rw-r--r-- | bin/sh/jobs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sh/jobs.c b/bin/sh/jobs.c index a4a8bdf..89aecea 100644 --- a/bin/sh/jobs.c +++ b/bin/sh/jobs.c @@ -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; |