|
a/src/windows/execmd_w.cpp |
|
b/src/windows/execmd_w.cpp |
|
... |
|
... |
425 |
void ExecCmd::zapChild()
|
425 |
void ExecCmd::zapChild()
|
426 |
{
|
426 |
{
|
427 |
setKill();
|
427 |
setKill();
|
428 |
(void)wait();
|
428 |
(void)wait();
|
429 |
}
|
429 |
}
|
|
|
430 |
|
|
|
431 |
bool ExecCmd::requestChildExit()
|
|
|
432 |
{
|
|
|
433 |
if (m_piProcInfo.hProcess) {
|
|
|
434 |
LOGDEB(("ExecCmd: GenerateConsoleCtrlEvent -> %d\n",
|
|
|
435 |
m_piProcInfo.dwProcessId));
|
|
|
436 |
return GenerateConsoleCtrlEvent(CTRL_BREAK_EVENT,
|
|
|
437 |
m_piProcInfo.dwProcessId);
|
|
|
438 |
}
|
|
|
439 |
return false;
|
|
|
440 |
}
|
|
|
441 |
|
430 |
void ExecCmd::putenv(const string &envassign)
|
442 |
void ExecCmd::putenv(const string &envassign)
|
431 |
{
|
443 |
{
|
432 |
vector<string> v;
|
444 |
vector<string> v;
|
433 |
stringToTokens(envassign, v, "=");
|
445 |
stringToTokens(envassign, v, "=");
|
434 |
if (v.size() == 2) {
|
446 |
if (v.size() == 2) {
|