mirror of
https://git.proxmox.com/git/proxmox
synced 2025-07-09 09:07:45 +00:00
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
|
/// safe wrapper for `nix::sys::socket::socketpair` defaulting to `O_CLOEXEC` and guarding the file
|
||||||
/// descriptors.
|
/// descriptors.
|
||||||
pub fn socketpair() -> Result<(OwnedFd, OwnedFd), Error> {
|
fn socketpair() -> Result<(OwnedFd, OwnedFd), Error> {
|
||||||
use nix::sys::socket;
|
use nix::sys::socket;
|
||||||
let (pa, pb) = socket::socketpair(
|
let (pa, pb) = socket::socketpair(
|
||||||
socket::AddressFamily::Unix,
|
socket::AddressFamily::Unix,
|
||||||
|
Loading…
Reference in New Issue
Block a user