mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-12-14 07:02:03 +00:00
Make log pipe a FIFO instead of anonymous pipe
This commit is contained in:
@@ -6,3 +6,17 @@ macro_rules! LOGFILE {
|
||||
"/cache/magisk.log"
|
||||
};
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! INTLROOT {
|
||||
() => {
|
||||
".magisk"
|
||||
};
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! LOG_PIPE {
|
||||
() => {
|
||||
concat!($crate::INTLROOT!(), "/log")
|
||||
};
|
||||
}
|
||||
|
||||
@@ -71,7 +71,7 @@ extern int app_process_32;
|
||||
extern int app_process_64;
|
||||
extern std::vector<module_info> *module_list;
|
||||
|
||||
const char *get_magisk_tmp();
|
||||
extern "C" const char *get_magisk_tmp();
|
||||
int connect_daemon(int req, bool create = false);
|
||||
|
||||
// Poll control
|
||||
|
||||
@@ -26,6 +26,7 @@ extern std::string MAGISKTMP;
|
||||
#define SELINUXMOCK INTLROOT "/selinux"
|
||||
#define MAIN_CONFIG INTLROOT "/config"
|
||||
#define MAIN_SOCKET INTLROOT "/socket"
|
||||
#define LOG_PIPE INTLROOT "/log"
|
||||
|
||||
constexpr const char *applet_names[] = { "su", "resetprop", nullptr };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user