summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2014-09-29 11:04:03 +0200
committerMichael Adam <obnox@samba.org>2014-09-30 16:36:09 +0200
commit9fa673bf37d59b14b113df978da58be4e3e58d7d (patch)
tree4c9d5580b38af2ff7b5a4a1cab61076e9d78faec
parent698e8a235740d4cedc5635b9f64da16cb3cb1f01 (diff)
downloadsamba-9fa673bf37d59b14b113df978da58be4e3e58d7d.tar.gz
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 <vl@samba.org> Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Signed-off-by: Michael Adam <obnox@samba.org> Signed-off-by: Volker Lendecke <vl@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r--source3/lib/unix_msg/unix_msg.c2
1 files changed, 0 insertions, 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,