]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Improve the logging for deployPkg in a few workflows
authorJohn Wolfe <jwolfe@vmware.com>
Fri, 11 Sep 2020 19:11:02 +0000 (12:11 -0700)
committerJohn Wolfe <jwolfe@vmware.com>
Fri, 11 Sep 2020 19:11:02 +0000 (12:11 -0700)
When executing Perl script in Linux Guest OS customization, log an
error if the execution fails.

open-vm-tools/libDeployPkg/processPosix.c

index 00ef34e0c6a7823965b547de86ef98dfc0d5d7e9..92863030515abc9c6663c224c4366c251c90235d 100644 (file)
@@ -188,6 +188,8 @@ Process_RunToComplete(ProcessHandle h, unsigned long timeoutSec)
       dup2(stdout[1], STDOUT_FILENO);
       dup2(stderr[1], STDERR_FILENO);
       execv(p->args[0], p->args);
+      p->log(log_error, "execv failed to run (%s), errno=(%d), "
+             "error message:(%s)", p->args[0], errno, strerror(errno));
 
       // exec failed
       close(stdout[1]);