diff options
author | nectar <nectar@FreeBSD.org> | 2002-09-11 16:38:33 +0000 |
---|---|---|
committer | nectar <nectar@FreeBSD.org> | 2002-09-11 16:38:33 +0000 |
commit | 927cfce43ea563f6042a80a8c89cb2357e15173e (patch) | |
tree | 2a028a724de98554fe2a1af838d14061ceff856b /bin | |
parent | d748f0673d5f88aac42f25f40f2cd89185a2baef (diff) | |
download | FreeBSD-src-927cfce43ea563f6042a80a8c89cb2357e15173e.zip FreeBSD-src-927cfce43ea563f6042a80a8c89cb2357e15173e.tar.gz |
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.
Diffstat (limited to 'bin')
-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; |