mirror of
https://git.proxmox.com/git/proxmox
synced 2025-08-11 20:27:56 +00:00
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 std::os::unix::io::AsRawFd;
|
||||||
use nix::sys::socket;
|
use nix::sys::socket;
|
||||||
|
|
||||||
|
use proxmox::tools::try_block;
|
||||||
|
|
||||||
/// Listens on a Unix Socket to handle simple command asynchronously
|
/// 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>
|
pub fn create_control_socket<P, F>(path: P, f: F) -> Result<impl Future<Item=(), Error=()>, Error>
|
||||||
where P: Into<PathBuf>,
|
where P: Into<PathBuf>,
|
||||||
|
Loading…
Reference in New Issue
Block a user