s3:unix_msg: don't close the fd-array at the end of unix_dgram_send_job()
authorMichael Adam <obnox@samba.org>
Mon, 29 Sep 2014 09:04:03 +0000 (11:04 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 30 Sep 2014 14:36:09 +0000 (16:36 +0200)
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>
source3/lib/unix_msg/unix_msg.c

index ad415ddc01061bedc7bf362c36dffa3c5e42082c..c3bcb56b19246503a2265bfe035f5f97f4b4c959 100644 (file)
@@ -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,