From 4eb684787cf4ca062dad57c5a88962ac78f8d9a7 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Sat, 31 Jul 2010 08:27:50 -0600 Subject: [PATCH] Author: Matthias Pitzl Bug 2991: Wrong parameters to fcntl() in commSetCloseOnExec() --- src/comm.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/comm.cc b/src/comm.cc index 4937bb2874..b5e927f5f3 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -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; } -- 2.47.3