Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quick hack to account for async evens getting coalesced #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/styx/svcs/devcons.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ void readline(uv_async_t* key_wake)
{
char ch;

keep:
if(qread(kbdq, &ch, 1) == 0) {
print("null char\n");
}
Expand Down Expand Up @@ -215,6 +216,8 @@ void readline(uv_async_t* key_wake)
kbd.x = 0;
}
}
if (qlen(kbdq))
goto keep;
}

void kbd_alloc(uv_handle_t* handle, size_t suggested_size, uv_buf_t* buf) {
Expand Down