提交 ab8dd999 编写于 作者: A Amy Griffis 提交者: Daniel Veillard

Add debug for envp[] in virExecWithHook()

* src/util/util.c: output some debug if caller of virExecWithHook have
  set envp[]
上级 01e0e98f
......@@ -601,12 +601,23 @@ virExecWithHook(virConnectPtr conn,
char *pidfile)
{
char *argv_str;
char *envp_str;
if ((argv_str = virArgvToString(argv)) == NULL) {
virReportOOMError(conn);
return -1;
}
DEBUG0(argv_str);
if (envp) {
if ((envp_str = virArgvToString(envp)) == NULL) {
virReportOOMError(conn);
return -1;
}
VIR_DEBUG("%s %s", envp_str, argv_str);
VIR_FREE(envp_str);
} else {
VIR_DEBUG0(argv_str);
}
VIR_FREE(argv_str);
return __virExec(conn, argv, envp, keepfd, retpid, infd, outfd, errfd,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册