wayland-proxy-virtwl

This commit is contained in:
Ashley Wulber 2022-10-23 19:48:00 -04:00
parent c41c108c4f
commit 9e8e7a14b7
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820
2 changed files with 20 additions and 8 deletions

View file

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