mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-06-13 05:37:47 +02: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