X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/cd2ad9a44df3771fcb118b6f132d30098529077b..bc34fd00d2e81fbc890bb2060ed6693454a230bf:/lunaix-os/kernel/lxconsole.c diff --git a/lunaix-os/kernel/lxconsole.c b/lunaix-os/kernel/lxconsole.c index e58e3f1..785330a 100644 --- a/lunaix-os/kernel/lxconsole.c +++ b/lunaix-os/kernel/lxconsole.c @@ -69,7 +69,7 @@ __tty_read(struct device* dev, void* buf, size_t offset, size_t len) // When a key is arrived, one of the processes will win the race and // swallow it (advancing the key buffer pointer) if (!kbd_recv_key(&keyevent)) { - sched_yield(); + sched_yieldk(); continue; } if (!(keyevent.state & KBD_KEY_FPRESSED)) {