You've already forked ReZygisk
mirror of
https://github.com/PerformanC/ReZygisk.git
synced 2025-09-06 06:37:01 +00:00
Configure cargo
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -3,5 +3,4 @@
|
||||
.cxx
|
||||
build
|
||||
local.properties
|
||||
target
|
||||
Cargo.lock
|
||||
|
||||
2
zygiskd/.cargo/config.toml
Normal file
2
zygiskd/.cargo/config.toml
Normal file
@@ -0,0 +1,2 @@
|
||||
[build]
|
||||
target-dir = "build/intermediates/rust"
|
||||
@@ -171,6 +171,7 @@ fn create_daemon_socket(is64: bool) -> Result<UnixListener> {
|
||||
let addr = UnixAddr::new_abstract(name.as_bytes())?;
|
||||
let socket = nix::sys::socket::socket(AddressFamily::Unix, SockType::Stream, SockFlag::empty(), None)?;
|
||||
nix::sys::socket::bind(socket, &addr)?;
|
||||
nix::sys::socket::listen(socket, 2)?;
|
||||
log::debug!("Listening on {}", addr);
|
||||
log::debug!("Socket fd: {}", socket);
|
||||
let listener = unsafe { UnixListener::from_raw_fd(socket) };
|
||||
|
||||
Reference in New Issue
Block a user