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
|
||||
#ifdef SIGINT
|
||||
case SIGINT: cp->ExitException = kwsysProcess_Exception_Interrupt; break;
|
||||
#endif
|
||||
#ifdef SIGABRT
|
||||
case SIGABRT: cp->ExitException = kwsysProcess_Exception_Abort; break;
|
||||
#endif
|
||||
default: cp->ExitException = kwsysProcess_Exception_Other; break;
|
||||
}
|
||||
cp->ExitCode = status;
|
||||
cp->ExitValue = (int)WTERMSIG(status);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue