[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdenetwork/krfb/kinetd
From:       Tim Jansen <tim () tjansen ! de>
Date:       2004-03-31 21:45:52
Message-ID: 20040331214552.E797099D0 () office ! kde ! org
[Download RAW message or body]

CVS commit by tjansen: 

Fixes bug #77412, thanks Waldo!


  M +6 -0      kinetd.cpp   1.26


--- kdenetwork/krfb/kinetd/kinetd.cpp  #1.25:1.26
@@ -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