summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2013-04-12 10:58:31 +0200
committerArthur de Jong <arthur@arthurdejong.org>2013-04-12 11:01:26 +0200
commitf45b24dc3501101f3bc7bbbb806b0cfb48e5662d (patch)
treed893180bb97198e6b8eac0532cfb9ba43ca58154
parentbc351970c1d7a528db7cab974b3cc8c473812aeb (diff)
Set FD_CLOEXEC on the client socket in utilities
-rw-r--r--utils/nslcd.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/nslcd.py b/utils/nslcd.py
index 65e5822..389b194 100644
--- a/utils/nslcd.py
+++ b/utils/nslcd.py
@@ -36,7 +36,7 @@ class NslcdClient(object):
def __init__(self, action):
# set up the socket (store in class to avoid closing it)
self.sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
- #fcntl.fcntl(sock, fcntl.F_SETFD, fcntl.FD_CLOEXEC)
+ fcntl.fcntl(self.sock, fcntl.F_SETFD, fcntl.FD_CLOEXEC)
# connect to nslcd
self.sock.connect(constants.NSLCD_SOCKET)
#self.sock.setblocking(1)