From 89e193c1ab8184f74b2b40f3822e544d5e0d5163 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 2 Apr 2024 22:40:59 +0200 Subject: Update dependencies --- crates/driver/Cargo.toml | 4 ++-- crates/driver/src/driver.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'crates/driver') diff --git a/crates/driver/Cargo.toml b/crates/driver/Cargo.toml index ecea8b8..683ebbe 100644 --- a/crates/driver/Cargo.toml +++ b/crates/driver/Cargo.toml @@ -14,10 +14,10 @@ runner = { path = "../runner", package = "rebel-runner" } clap = { version = "4.0.0", features = ["derive"] } deb-version = "0.1.1" enum-kinds = "0.5.1" -handlebars = "4.1.3" +handlebars = "5.1.2" indoc = "2.0.4" lazy_static = "1.4.0" -nix = { version = "0.27.1", features = ["poll"] } +nix = { version = "0.28.0", features = ["poll"] } nom = "7.1.0" scoped-tls-hkt = "0.1.2" serde = { version = "1", features = ["derive", "rc"] } diff --git a/crates/driver/src/driver.rs b/crates/driver/src/driver.rs index d0abbcb..8acf50a 100644 --- a/crates/driver/src/driver.rs +++ b/crates/driver/src/driver.rs @@ -352,10 +352,10 @@ impl<'ctx> Driver<'ctx> { let mut pollfds: Vec<_> = self .tasks_running .values() - .map(|(socket, _)| poll::PollFd::new(socket, poll::PollFlags::POLLIN)) + .map(|(socket, _)| poll::PollFd::new(socket.as_fd(), poll::PollFlags::POLLIN)) .collect(); - while poll::poll(&mut pollfds, -1).context("poll()")? == 0 {} + while poll::poll(&mut pollfds, poll::PollTimeout::NONE).context("poll()")? == 0 {} let pollevents: Vec<_> = pollfds .into_iter() -- cgit v1.2.3