>From f8575ee84999dbf2ceabd02ca24c23b864e8d917 Mon Sep 17 00:00:00 2001 From: Youzhong Yang Date: Mon, 20 Apr 2015 09:42:42 -0400 Subject: [PATCH] s3-unix_msg: remove socket file after closing socket fd This is needed on Solaris. It fixes https://bugzilla.samba.org/show_bug.cgi?id=11217 Reviewed-by: Jeremy Allison --- source3/lib/unix_msg/unix_msg.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/source3/lib/unix_msg/unix_msg.c b/source3/lib/unix_msg/unix_msg.c index 7cb1936..0baaa9d 100644 --- a/source3/lib/unix_msg/unix_msg.c +++ b/source3/lib/unix_msg/unix_msg.c @@ -684,13 +684,13 @@ static int unix_dgram_free(struct unix_dgram_ctx *ctx) ctx->ev_funcs->watch_free(ctx->sock_read_watch); + close(ctx->sock); if (getpid() == ctx->created_pid) { /* If we created it, unlink. Otherwise someone else might * still have it open */ unlink(ctx->path); } - close(ctx->sock); free(ctx->recv_buf); free(ctx); return 0; -- 1.7.2.5