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:
Rafal Wojtczuk 2011-03-16 15:18:37 +01:00
parent 769eedd33a
commit 15bab70eae

View File

@ -483,9 +483,12 @@ void handle_trigger_io()
write_all_vchan_ext(&s_hdr, sizeof s_hdr);
}
}
// trigger_fd is nonblock - so no need to reopen
#if 0
close(trigger_fd);
trigger_fd =
open(QREXEC_AGENT_TRIGGER_PATH, O_RDONLY | O_NONBLOCK);
#endif
}
int main()