X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/0e1309c02f0703c050df09b71346dab60fc6df87..bc4c6e1218d6903b07c32b11ea7d3c82c463686e:/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)) {