diff mbox series

[1/4] support/shell-container.c: Return 127 if execve fails

Message ID 20200324185043.2073568-1-adhemerval.zanella@linaro.org
State Dropped
Headers show
Series [1/4] support/shell-container.c: Return 127 if execve fails | expand

Commit Message

Adhemerval Zanella March 24, 2020, 6:50 p.m. UTC
---
 support/shell-container.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/support/shell-container.c b/support/shell-container.c
index 72950bcabf..d1112d4009 100644
--- a/support/shell-container.c
+++ b/support/shell-container.c
@@ -238,7 +238,7 @@  run_command_array (char **argv)
 
       fprintf (stderr, "sh: execing %s failed: %s",
 	       argv[0], strerror (errno));
-      exit (1);
+      exit (127);
     }
 
   waitpid (pid, &status, 0);