News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

"Abort" Build when using external Makefiles

Started by glaure, February 02, 2010, 04:05:49 PM

Previous topic - Next topic

glaure

Hi!

I am looking for the right place in source code where the "abort" of Makefile builds is handled (Linux).
We are using a shitty difficult hierarchy of makefiles which are delegating build steps further down into a
separate jailed build environment. Well I got it running (+ debugging yeah :) ) but the simple task of aborting
a running build fails.

In my tests I observed that aborts using SIGTERM do not work as they stop the build process after the current step.
This step is sadly a step that takes 10 minutes or more. SIGINT works better, at least in my tests.

I found int CompilerGCC::KillProcess() but I am not sure that this function is the one that is called.

Any tips?

Bye Gunther

glaure

Please ignore the question.  I tried to kill a "root" build process from a process with user rights. Of course that didnt work.