wayland-proxy-virtwl
This commit is contained in:
parent
c41c108c4f
commit
9e8e7a14b7
2 changed files with 20 additions and 8 deletions
|
|
@ -3,7 +3,7 @@ use color_eyre::eyre::{ContextCompat, Result, WrapErr};
|
|||
use nix::fcntl;
|
||||
use std::os::unix::prelude::*;
|
||||
|
||||
fn mark_as_not_cloexec(file: &impl AsFd) -> Result<()> {
|
||||
pub(crate) fn mark_as_not_cloexec(file: &impl AsFd) -> Result<()> {
|
||||
let raw_fd = file.as_fd().as_raw_fd();
|
||||
let fd_flags = fcntl::FdFlag::from_bits(
|
||||
fcntl::fcntl(raw_fd, fcntl::FcntlArg::F_GETFD)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue