diff options
author | Benji Dial <benji6283@gmail.com> | 2020-09-13 19:51:09 -0400 |
---|---|---|
committer | Benji Dial <benji6283@gmail.com> | 2020-09-13 19:51:09 -0400 |
commit | 143156f63e2448733f1a35a74e629fe0ae9bb567 (patch) | |
tree | bcf70a6940038986da2cfb2d6ed380ed8ebb91de /src/user/highway/highway.c | |
parent | 54101cf327b7def90636babbadbb66ce697298ee (diff) | |
download | portland-os-143156f63e2448733f1a35a74e629fe0ae9bb567.tar.gz |
have command shell block while commands are running
Diffstat (limited to 'src/user/highway/highway.c')
-rw-r--r-- | src/user/highway/highway.c | 4 |
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 |