mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-10-28 01:29:45 +00:00
Allow modifying denylist without enforcement
This commit is contained in:
@@ -46,6 +46,9 @@ void register_poll(const pollfd *pfd, poll_callback callback) {
|
||||
}
|
||||
|
||||
void unregister_poll(int fd, bool auto_close) {
|
||||
if (fd < 0)
|
||||
return;
|
||||
|
||||
if (gettid() == getpid()) {
|
||||
// On main thread, directly modify
|
||||
poll_map->erase(fd);
|
||||
|
||||
Reference in New Issue
Block a user