mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-24 04:47:39 +00:00
Avoid non-blocking I/O
This commit is contained in:
parent
18acb97dfe
commit
5e6eb8dd01
@ -217,7 +217,8 @@ int app_request(const su_context &ctx) {
|
||||
exec_cmd("request", extras, ctx.info, false);
|
||||
|
||||
// Wait for data input for at most 70 seconds
|
||||
int fd = xopen(fifo, O_RDONLY | O_CLOEXEC | O_NONBLOCK);
|
||||
// Open with O_RDWR to prevent FIFO open block
|
||||
int fd = xopen(fifo, O_RDWR | O_CLOEXEC);
|
||||
struct pollfd pfd = {
|
||||
.fd = fd,
|
||||
.events = POLLIN
|
||||
|
Loading…
x
Reference in New Issue
Block a user