Removed Exception_Abort because there is no windows version. Also made ExitValue consistent with windows when a signal kills the process.
This commit is contained in:
parent
f5bbacaa5c
commit
5b6920ed16
|
@ -620,14 +620,10 @@ int kwsysProcess_WaitForExit(kwsysProcess* cp, double* userTimeout)
|
||||||
#endif
|
#endif
|
||||||
#ifdef SIGINT
|
#ifdef SIGINT
|
||||||
case SIGINT: cp->ExitException = kwsysProcess_Exception_Interrupt; break;
|
case SIGINT: cp->ExitException = kwsysProcess_Exception_Interrupt; break;
|
||||||
#endif
|
|
||||||
#ifdef SIGABRT
|
|
||||||
case SIGABRT: cp->ExitException = kwsysProcess_Exception_Abort; break;
|
|
||||||
#endif
|
#endif
|
||||||
default: cp->ExitException = kwsysProcess_Exception_Other; break;
|
default: cp->ExitException = kwsysProcess_Exception_Other; break;
|
||||||
}
|
}
|
||||||
cp->ExitCode = status;
|
cp->ExitCode = status;
|
||||||
cp->ExitValue = (int)WTERMSIG(status);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue