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:
Wolfgang Bumiller 2023-01-24 11:14:35 +01:00
parent ccc70bc95f
commit 01436ae30f

View File

@ -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,