r3169: unlink() is called on the listening unix socket every time a child process
[bbaumbach/samba-autobuild/.git] / 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,