You've already forked ZygiskNext
mirror of
https://github.com/Dr-TSNG/ZygiskNext.git
synced 2025-08-27 23:46:34 +00:00
Configure cargo
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -3,5 +3,4 @@
|
|||||||
.cxx
|
.cxx
|
||||||
build
|
build
|
||||||
local.properties
|
local.properties
|
||||||
target
|
|
||||||
Cargo.lock
|
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 addr = UnixAddr::new_abstract(name.as_bytes())?;
|
||||||
let socket = nix::sys::socket::socket(AddressFamily::Unix, SockType::Stream, SockFlag::empty(), None)?;
|
let socket = nix::sys::socket::socket(AddressFamily::Unix, SockType::Stream, SockFlag::empty(), None)?;
|
||||||
nix::sys::socket::bind(socket, &addr)?;
|
nix::sys::socket::bind(socket, &addr)?;
|
||||||
|
nix::sys::socket::listen(socket, 2)?;
|
||||||
log::debug!("Listening on {}", addr);
|
log::debug!("Listening on {}", addr);
|
||||||
log::debug!("Socket fd: {}", socket);
|
log::debug!("Socket fd: {}", socket);
|
||||||
let listener = unsafe { UnixListener::from_raw_fd(socket) };
|
let listener = unsafe { UnixListener::from_raw_fd(socket) };
|
||||||
|
|||||||
Reference in New Issue
Block a user