mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-05 11:30:47 -05:00
Always close logd_fd during fork
This commit is contained in:
@@ -371,7 +371,7 @@ impl MagiskD {
|
||||
.join(LOG_PIPE!());
|
||||
|
||||
unsafe {
|
||||
libc::mkfifo(path.as_ptr(), 0o200);
|
||||
libc::mkfifo(path.as_ptr(), 0o666);
|
||||
libc::chown(path.as_ptr(), 0, 0);
|
||||
let read = libc::open(path.as_ptr(), O_RDWR | O_CLOEXEC);
|
||||
let write = libc::open(path.as_ptr(), O_WRONLY | O_CLOEXEC);
|
||||
|
||||
Reference in New Issue
Block a user