update to nix 0.14, use code from proxmox:tools
This commit is contained in:
parent
fd40d69ae0
commit
465990e139
@ -14,6 +14,8 @@ use std::sync::Arc;
|
||||
use std::os::unix::io::AsRawFd;
|
||||
use nix::sys::socket;
|
||||
|
||||
use proxmox::tools::try_block;
|
||||
|
||||
/// Listens on a Unix Socket to handle simple command asynchronously
|
||||
pub fn create_control_socket<P, F>(path: P, f: F) -> Result<impl Future<Item=(), Error=()>, Error>
|
||||
where P: Into<PathBuf>,
|
||||
|
Loading…
Reference in New Issue
Block a user