forked from Proxmox/proxmox
rest-server: make socketpair private
`proxmox_rest_server::socketpair` doesn't make sense as an external API Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
ccc70bc95f
commit
01436ae30f
@ -175,7 +175,7 @@ pub fn fail_on_shutdown() -> Result<(), Error> {
|
||||
|
||||
/// safe wrapper for `nix::sys::socket::socketpair` defaulting to `O_CLOEXEC` and guarding the file
|
||||
/// descriptors.
|
||||
pub fn socketpair() -> Result<(OwnedFd, OwnedFd), Error> {
|
||||
fn socketpair() -> Result<(OwnedFd, OwnedFd), Error> {
|
||||
use nix::sys::socket;
|
||||
let (pa, pb) = socket::socketpair(
|
||||
socket::AddressFamily::Unix,
|
||||
|
Loading…
Reference in New Issue
Block a user