From: Amos Jeffries Date: Wed, 28 Jul 2010 12:39:35 +0000 (-0600) Subject: Author: Matthias Pitzl X-Git-Tag: SQUID_3_2_0_1~22 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2209fe197dbeea4f09060a56edc442bbeb4d30ac;p=thirdparty%2Fsquid.git Author: Matthias Pitzl Bug 2991: Wrong parameters to fcntl() in commSetCloseOnExec() --- diff --git a/src/comm.cc b/src/comm.cc index 11853c1c87..1542f27342 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -1843,8 +1843,8 @@ commSetCloseOnExec(int fd) int flags; int dummy = 0; - if ((flags = fcntl(fd, F_GETFL, dummy)) < 0) { - debugs(50, 0, "FD " << fd << ": fcntl F_GETFL: " << xstrerror()); + if ((flags = fcntl(fd, F_GETFD, dummy)) < 0) { + debugs(50, 0, "FD " << fd << ": fcntl F_GETFD: " << xstrerror()); return; }