Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Cancel action for project building fails (sometimes)

Yes it does this way because of gdb.  I am not sure why not just kill process native and let gdb handle it on its own. And If taskkill is external command it may not be available on on windows...

On Thu, Dec 4, 2014 at 9:17 AM, Azab, Mohamed <Mohamed_Azab@xxxxxxxxxx> wrote:

Ping?

 

- Azab

 

From: Azab, Mohamed
Sent: Tuesday, November 25, 2014 4:00 PM
To: CDT General developers list. (cdt-dev@xxxxxxxxxxx)
Subject: Cancel action for project building fails (sometimes)

 

Hi all,

 

It is known for a while now that the native process termination mechanism that CDT use doesn’t work properly with “make” processes in Windows environment ( https://bugs.eclipse.org/bugs/show_bug.cgi?id=370850 ).

We were investigating this recently and it appears to has something to do with the way that starter.exe handles terminate/kill events.

Looking at org.eclipse.cdt.core.win32\library\starter\starter.cpp(352), we found that in case starter received term/kill event, it will only send a ctrlc event to the parent console.

It appears that replacing this logic with something like what starter does with Cygwin processes, and send “taskkill /T ” in terminate event and “taskkill /T /F” in kill event solves the problem with canceling make process tree.

 

Is there a strong reason on using ctrlc in this case or is there a side effect on something else like gdb processes?

 

Thanks,

Mohamed Azab

 


_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/cdt-dev


Back to the top