r3169: unlink() is called on the listening unix socket every time a child process
authorJelmer Vernooij <jelmer@samba.org>
Sun, 24 Oct 2004 23:30:47 +0000 (23:30 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:02:29 +0000 (13:02 -0500)
exits. Commenting it out until we have a clean way of doing this.
(This used to be commit fa0760dd5fa361be3b72dc4adc8b736e8a862606)

source4/lib/socket/socket_unix.c

index 1735c931b849d1fe072887d3d49d2bcea478dc02..038ce3b3b6882c8795e5750e062808eb7d5908e3 100644 (file)
@@ -73,9 +73,13 @@ static void unixdom_close(struct socket_context *sock)
        close(sock->fd);
        /* if we were listening, then don't leave the socket lying
           around in the filesystem */
+
+#if 0
+       /* FIXME - this doesn't work after fork(), etc */
        if (sock->private_data) {
                unlink((const char *)sock->private_data);
        }
+#endif
 }
 
 static NTSTATUS unixdom_connect(struct socket_context *sock,