]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Matthias Pitzl <silamael@coronamundi.de>
authorAmos Jeffries <amosjeffries@squid-cache.org>
Sat, 31 Jul 2010 14:28:46 +0000 (08:28 -0600)
committerAmos Jeffries <amosjeffries@squid-cache.org>
Sat, 31 Jul 2010 14:28:46 +0000 (08:28 -0600)
Bug 2991: Wrong parameters to fcntl() in commSetCloseOnExec()

src/comm.cc

index 241c92389fda05e72bad4c57f023cf726523bd36..bb4970face56a4b4b9aeaa262190598ef90bef10 100644 (file)
@@ -1801,8 +1801,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;
     }