1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00

update new function to do interruption.

This commit is contained in:
Alain Magloire 2003-04-24 21:16:14 +00:00
parent 8bed408f59
commit 977a96bbc6

View file

@ -100,7 +100,11 @@ JNIEXPORT jint JNICALL Java_org_eclipse_cdt_utils_spawner_Spawner_exec0
char buffer[1000];
#endif
if((HIBYTE(LOWORD(GetVersion()))) & 0x80)
{
ThrowByName(env, "java/lang/IOException", "Does not support Windows 3.1/95/98/Me");
return 0;
}
if (cmdarray == 0)
{
@ -511,8 +515,12 @@ JNIEXPORT jint JNICALL Java_org_eclipse_cdt_utils_spawner_Spawner_raise
char buffer[100];
#endif
if(NULL == pCurProcInfo)
if(NULL == pCurProcInfo) {
if(SIG_INT == signal) { // Try another way
return interruptProcess(uid) ;
}
return -1;
}
#ifdef DEBUG_MONITOR
sprintf(buffer, "Spawner received signal %i for process %i\n", signal, pCurProcInfo -> pid);