Handle pipe io in qrexec_agent properly
Don't reopen pipe after each read - no need, and it could lose events.
This commit is contained in:
parent
769eedd33a
commit
15bab70eae
@ -483,9 +483,12 @@ void handle_trigger_io()
|
|||||||
write_all_vchan_ext(&s_hdr, sizeof s_hdr);
|
write_all_vchan_ext(&s_hdr, sizeof s_hdr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// trigger_fd is nonblock - so no need to reopen
|
||||||
|
#if 0
|
||||||
close(trigger_fd);
|
close(trigger_fd);
|
||||||
trigger_fd =
|
trigger_fd =
|
||||||
open(QREXEC_AGENT_TRIGGER_PATH, O_RDONLY | O_NONBLOCK);
|
open(QREXEC_AGENT_TRIGGER_PATH, O_RDONLY | O_NONBLOCK);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
|
Loading…
Reference in New Issue
Block a user