umka_os: Load very basic userspace KolibriOS app

This commit is contained in:
2022-05-24 23:22:12 +04:00
parent ce6ad3efa6
commit d479f8a121
10 changed files with 145 additions and 23 deletions

View File

@@ -223,13 +223,9 @@ next_line(int is_tty, int block) {
FD_SET(fileno(fin), &readfds);
struct timeval timeout = {.tv_sec = 0, .tv_usec = 0};
int sr = select(fileno(fin)+1, &readfds, NULL, NULL, &timeout);
cmd_buf[0] = '\0';
if (sr > 0) {
fgets(cmd_buf, FGETS_BUF_LEN, fin);
if (cmd_buf[0] == EOF) {
cmd_buf[0] = '\0';
}
} else {
cmd_buf[0] = '\0';
}
return 1;
}