removed incorrect recvmsg buffer
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
Jake Hillion 2022-05-02 11:13:10 +01:00
parent 5e7eba5f61
commit 9ba3972ad8

View File

@ -212,14 +212,13 @@ impl<'a> Spawner<'a> {
}
fn file_socket_trigger(&self, socket: File, spec: &Entrypoint, name: &str) -> Result<()> {
let mut buf = Vec::new();
loop {
let msg = recvmsg(socket.as_raw_fd(), &[], Some(&mut buf), MsgFlags::empty()).map_err(
|e| Error::Nix {
let msg = recvmsg(socket.as_raw_fd(), &[], None, MsgFlags::empty()).map_err(|e| {
Error::Nix {
msg: "recvmsg",
src: e,
},
)?;
}
})?;
debug!("triggering from socket recvmsg");