From 8cd2d772b0eba73e757fb4c2b0278dd46a4890cb Mon Sep 17 00:00:00 2001 From: Bananymous Date: Fri, 18 Apr 2025 20:58:30 +0300 Subject: [PATCH] Shell: Print error if `execv` fails --- userspace/programs/Shell/Execute.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/userspace/programs/Shell/Execute.cpp b/userspace/programs/Shell/Execute.cpp index 2be027eb..eb82d207 100644 --- a/userspace/programs/Shell/Execute.cpp +++ b/userspace/programs/Shell/Execute.cpp @@ -100,6 +100,7 @@ BAN::ErrorOr Execute::execute_command_no_wait(const Inte CHECK_FD_OR_PERROR_AND_EXIT(command.fd_out, STDOUT_FILENO); execv(command.command.get().data(), const_cast(exec_args.data())); + perror("execv"); exit(errno); }