From: John Wolfe Date: Fri, 11 Sep 2020 19:11:02 +0000 (-0700) Subject: Improve the logging for deployPkg in a few workflows X-Git-Tag: stable-11.2.0~55 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0bb2d1599b4a29486aef2d4bced25992a99154cf;p=thirdparty%2Fopen-vm-tools.git Improve the logging for deployPkg in a few workflows When executing Perl script in Linux Guest OS customization, log an error if the execution fails. --- diff --git a/open-vm-tools/libDeployPkg/processPosix.c b/open-vm-tools/libDeployPkg/processPosix.c index 00ef34e0c..928630305 100644 --- a/open-vm-tools/libDeployPkg/processPosix.c +++ b/open-vm-tools/libDeployPkg/processPosix.c @@ -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]);