mirror of https://github.com/BOINC/boinc.git
VBOX: If we fail to terminate vboxmanage on a TIMEOUT, log the reason why.
This commit is contained in:
parent
c7db808abd
commit
ab9f75c155
|
@ -2821,7 +2821,14 @@ int VBOX_VM::vbm_popen_raw(string& command, string& output, unsigned int timeout
|
||||||
|
|
||||||
// Timeout?
|
// Timeout?
|
||||||
if (ulExitTimeout >= (timeout * 1000)) {
|
if (ulExitTimeout >= (timeout * 1000)) {
|
||||||
TerminateProcess(pi.hProcess, EXIT_FAILURE);
|
if (!TerminateProcess(pi.hProcess, EXIT_FAILURE)) {
|
||||||
|
fprintf(
|
||||||
|
stderr,
|
||||||
|
"%s TerminateProcess failed! (%d).\n",
|
||||||
|
vboxwrapper_msg_prefix(buf, sizeof(buf)),
|
||||||
|
GetLastError()
|
||||||
|
);
|
||||||
|
}
|
||||||
ulExitCode = 0;
|
ulExitCode = 0;
|
||||||
retval = ERR_TIMEOUT;
|
retval = ERR_TIMEOUT;
|
||||||
Sleep(1000);
|
Sleep(1000);
|
||||||
|
|
Loading…
Reference in New Issue