Break devctl() up into smaller syscalls
This commit is contained in:
@ -217,7 +217,7 @@ bool interp_runstring(char *string, InterpResult **res, bool logcmds, bool inter
|
||||
|
||||
while(proc_pollstate(app) != 4) {
|
||||
if (interactive) {
|
||||
int32_t key = devctl(&ps2kbdev, DEV_PS2KBDEV_READCH, (uint8_t *)PID, 0, 0);
|
||||
int32_t key = dev_cmd(&ps2kbdev, DEV_PS2KBDEV_READCH, (void *)PID, 0, NULL);
|
||||
if (key > 0 && (uint8_t)key == C('S')) {
|
||||
proc_kill(app);
|
||||
goto cleanup;
|
||||
|
||||
Reference in New Issue
Block a user