diff options
| author | Jacques Vidrine <nectar@FreeBSD.org> | 2002-09-11 16:38:33 +0000 |
|---|---|---|
| committer | Jacques Vidrine <nectar@FreeBSD.org> | 2002-09-11 16:38:33 +0000 |
| commit | dde97b32ff1816f6215dfa4f7bf26f611bc8c154 (patch) | |
| tree | 2a028a724de98554fe2a1af838d14061ceff856b | |
| parent | 85fee3197aeee6d7c20655a0ebfb8ea9b30b5487 (diff) | |
Notes
| -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 a4a8bdf57cf7..89aecea490fb 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; |
