Sometimes, I need to kill emerge as something is going wrong and, sadly, it has been launched from a terminal I cannot reach (for example if I am accessing to the machine using ssh and emerge was started locally) or using nohup Currently, I kill it looking to "emerge", "ebuild" processes manually, but sometimes I need to wait for remaining processes (like tar, aclocal...) to die by themselves Sometime ago, I see how easy is to kill evolution* processes simply running "evolution --force-shutdown", then, I thought that maybe a similar option could be added to portage for exiting cleanly all emerge processes Thanks a lot Reproducible: Always
You might want to use app-misc/screen.
This seems a little bit like bug 21509, but I guess you want it to terminate immediately rather than after the current build(s) are complete.
(In reply to comment #2) > This seems a little bit like bug 21509, but I guess you want it to terminate > immediately rather than after the current build(s) are complete. > Yes, I would like to terminate all emerge processes immediately if possible :-) About, screen, I will have to take a look on it
I guess I don't get what is wrong with pkill emerge ?
emerge should probably properly terminate its children when it receives a termination signal itself, if it doesn't yet already
And maybe this could be extended to something like "--terminate-tests" (or other phase) for the cases where tests take years to end :-)