From 9fa673bf37d59b14b113df978da58be4e3e58d7d Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Mon, 29 Sep 2014 11:04:03 +0200 Subject: [PATCH] s3:unix_msg: don't close the fd-array at the end of unix_dgram_send_job() These pthread-pool-jobs should be minimal and ideally only do one syscall. The closing of the fds is done in unix_dgram_job_finished(). Pair-Programmed-With: Volker Lendecke Pair-Programmed-With: Stefan Metzmacher Signed-off-by: Michael Adam Signed-off-by: Volker Lendecke Signed-off-by: Stefan Metzmacher --- source3/lib/unix_msg/unix_msg.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/source3/lib/unix_msg/unix_msg.c b/source3/lib/unix_msg/unix_msg.c index ad415ddc010..c3bcb56b192 100644 --- a/source3/lib/unix_msg/unix_msg.c +++ b/source3/lib/unix_msg/unix_msg.c @@ -579,8 +579,6 @@ static void unix_dgram_send_job(void *private_data) do { dmsg->sent = sendmsg(dmsg->sock, &msg, 0); } while ((dmsg->sent == -1) && (errno == EINTR)); - - close_fd_array(dmsg->fds, dmsg->num_fds); } static void unix_dgram_job_finished(struct poll_watch *w, int fd, short events, -- 2.11.4.GIT