[PATCH 1/4] support/shell-container.c: Return 127 if execve fails
Adhemerval Zanella
adhemerval.zanella@linaro.org
Tue Mar 24 18:50:40 GMT 2020
---
support/shell-container.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
--
2.17.1
More information about the Libc-alpha
mailing list