summaryrefslogtreecommitdiff
path: root/src/user/highway
diff options
context:
space:
mode:
authorBenji Dial <benji6283@gmail.com>2020-09-13 19:51:09 -0400
committerBenji Dial <benji6283@gmail.com>2020-09-13 19:51:09 -0400
commit143156f63e2448733f1a35a74e629fe0ae9bb567 (patch)
treebcf70a6940038986da2cfb2d6ed380ed8ebb91de /src/user/highway
parent54101cf327b7def90636babbadbb66ce697298ee (diff)
downloadportland-os-143156f63e2448733f1a35a74e629fe0ae9bb567.tar.gz
have command shell block while commands are running
Diffstat (limited to 'src/user/highway')
-rw-r--r--src/user/highway/highway.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/user/highway/highway.c b/src/user/highway/highway.c
index 8dc0080..7e78472 100644
--- a/src/user/highway/highway.c
+++ b/src/user/highway/highway.c
@@ -18,9 +18,7 @@ void main() {
ask_user_line_sz(line_buf, 1023);
if (blockequ(line_buf, "exit", 5))
return;
- if (try_run_command(path_buf))
- yield_task();
- else
+ if (!try_run_command_blocking(path_buf))
tell_user_sz("An error occured trying to run that command.\n");
}
} \ No newline at end of file