size_t pipesz;
};
+static int smb_vfs_io_pool_destructor(struct smb_vfs_io_pool *pool)
+{
+ return 0;
+}
+
static int smb_vfs_io_destructor(struct smb_vfs_io *io)
{
int ret;
}
DLIST_REMOVE(io->pool->busy_list, io);
+ close(io->pipefds[0]);
+ io->pipefds[0] = -1;
+ close(io->pipefds[1]);
+ io->pipefds[1] = -1;
+ return 0;
DLIST_ADD_END(io->pool->free_list, io);
talloc_steal(io->pool, io);
return -1;
.dev_null_fd = -1,
};
+ talloc_set_destructor(pool, smb_vfs_io_pool_destructor);
+
while (pool->cur_count < pool->min_count) {
int ret;