More Rust

This commit is contained in:
topjohnwu
2022-08-19 02:21:52 -07:00
parent 2d8beabbd4
commit 34dd9eb7d6
9 changed files with 172 additions and 108 deletions

View File

@@ -107,7 +107,7 @@ static void poll_ctrl_handler(pollfd *pfd) {
[[noreturn]] static void poll_loop() {
// Register poll_ctrl
int pipefd[2];
auto pipefd = array<int, 2>{-1, -1};
xpipe2(pipefd, O_CLOEXEC);
poll_ctrl = pipefd[1];
pollfd poll_ctrl_pfd = { pipefd[0], POLLIN, 0 };