From 3768f36a2ff451aebda5f897db031cdf00bdf589 Mon Sep 17 00:00:00 2001 From: Paul Pan Date: Tue, 30 Jan 2024 19:28:05 +0800 Subject: [PATCH] chore: verbose log when execve failed --- launcher.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/launcher.c b/launcher.c index 9ccbedd..4b71272 100644 --- a/launcher.c +++ b/launcher.c @@ -3,6 +3,7 @@ #include "resource.h" #include "utils/log.h" +#include #include #include #include @@ -118,7 +119,7 @@ int main(int argc, char *argv[]) { } else if (child == 0) { // Program launch_child(); - LOG_ERR("Failed to execute child program"); + LOG_ERR("Failed to execute child program: %s", strerror(errno)); exit(ERR_EXEC); } else { // Supervisor