The fix introduced in [#104] kills the compiling process hard. This can lead to corrupt object and lib files.
with this patch i try to fix it, by check if we are compiling or running the application.
On compiling i send SIGTERM, on running i send SIGKILL
This fixes the issue for me.
A more elaborate solution would be to make the termination a two step process, first gently ask for termination with SIGTERM (and mark the terminate button with a other symbol/color) and if the user presses the button a second time, send a SIGKILL.
This requires a lot of rework in UI and SDK code.
For me the patch posted here is enough
tested on linux and windows
I've modified the patch a bit. I think this version is a bit clearer.
It can probably be simplified a bit further by:
But I'm not sure if it will make it more clear by doing so.
Diff:
Related
Tickets:
#104thank you!
is in r12482