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

src/comm.cc

index 11853c1c87289479cb77aab1b09ca4afef18a0bd..1542f27342386a7a046f210e2d3a31fb3b1fd436 100644 (file)
@@ -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;
     }