mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-12-13 10:21:51 +00: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