summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/messaging/messaging.c1
-rw-r--r--source4/lib/socket/socket_unix.c9
2 files changed, 1 insertions, 9 deletions
diff --git a/source4/lib/messaging/messaging.c b/source4/lib/messaging/messaging.c
index b0ca9cc41e..13c1a049f8 100644
--- a/source4/lib/messaging/messaging.c
+++ b/source4/lib/messaging/messaging.c
@@ -435,6 +435,7 @@ static int messaging_destructor(void *msg_ctx)
{
struct messaging_state *msg = msg_ctx;
event_remove_fd(msg->event.ev, msg->event.fde);
+ unlink(msg->path);
return 0;
}
diff --git a/source4/lib/socket/socket_unix.c b/source4/lib/socket/socket_unix.c
index 038ce3b3b6..df929d92b4 100644
--- a/source4/lib/socket/socket_unix.c
+++ b/source4/lib/socket/socket_unix.c
@@ -71,15 +71,6 @@ static NTSTATUS unixdom_init(struct socket_context *sock)
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,