[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE_3_2_BRANCH: kdenetwork/krfb/kinetd
From: Tim Jansen <tim () tjansen ! de>
Date: 2004-03-31 21:52:45
Message-ID: 20040331215245.ADE3C99D6 () office ! kde ! org
[Download RAW message or body]
CVS commit by tjansen:
backport fix for #77412
M +6 -0 kinetd.cpp 1.25.2.1
--- kdenetwork/krfb/kinetd/kinetd.cpp #1.25:1.25.2.1
@@ -33,4 +33,7 @@
#include <kglobal.h>
+#include <unistd.h>
+#include <fcntl.h>
+
PortListener::PortListener(KService::Ptr s,
KConfig *config,
@@ -189,4 +192,7 @@ void PortListener::accepted(KSocket *soc
}
+ // disable CLOEXEC flag, fixes #77412
+ fcntl(sock->socket(), F_SETFD, fcntl(sock->socket(), F_GETFD) & ~FD_CLOEXEC);
+
m_process.clearArguments();
m_process << m_execPath << m_argument << QString::number(sock->socket());
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic