Skip to content

Commit

Permalink
Disable socket locking
Browse files Browse the repository at this point in the history
  • Loading branch information
morr0ne committed Jan 17, 2025
1 parent 36e546f commit d989386
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/server/listener.rs
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
use std::{
io,
os::fd::FromRawFd,
path::{Path, PathBuf},
pin::Pin,
task::{Context, Poll},
};

use futures_util::Stream;
use pin_project_lite::pin_project;
use rustix::fd::OwnedFd;
use tokio::net::{UnixListener, UnixStream};

use crate::server::Error;

pin_project! {
pub struct Listener {
unix_listener: UnixListener,
_lock: OwnedFd,
// _lock: OwnedFd,
socket_path: PathBuf,
lock_path: PathBuf,
}
Expand Down Expand Up @@ -50,7 +48,7 @@ impl Listener {
// FIXME: actually implement this
Ok(Self {
unix_listener: UnixListener::bind(path)?,
_lock: unsafe { OwnedFd::from_raw_fd(5) },
// _lock: unsafe { OwnedFd::from_raw_fd(5) },
socket_path: PathBuf::new(),
lock_path: PathBuf::new(),
})
Expand Down

0 comments on commit d989386

Please sign in to comment.