]> 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:27:50 +0000 (08:27 -0600)
committerAmos Jeffries <amosjeffries@squid-cache.org>
Sat, 31 Jul 2010 14:27:50 +0000 (08:27 -0600)
Bug 2991: Wrong parameters to fcntl() in commSetCloseOnExec()

src/comm.cc

index 4937bb2874abb182d396e545d65a84ee90ef0572..b5e927f5f39a86460b611f5bf59a95ac145efa1b 100644 (file)
@@ -1878,8 +1878,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;
     }