Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 289626 - Allow to kill all existing emerge processes with a "--terminate" option
Summary: Allow to kill all existing emerge processes with a "--terminate" option
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 184128
  Show dependency tree
 
Reported: 2009-10-18 19:06 UTC by Pacho Ramos
Modified: 2010-02-25 20:01 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2009-10-18 19:06:00 UTC
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
Comment 1 Sebastian Luther (few) 2009-10-18 19:23:34 UTC
You might want to use app-misc/screen.
Comment 2 Zac Medico gentoo-dev 2009-10-18 19:50:49 UTC
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.
Comment 3 Pacho Ramos gentoo-dev 2009-10-20 12:32:49 UTC
(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 
Comment 4 Alec Warner (RETIRED) archtester gentoo-dev Security 2009-10-20 19:20:38 UTC
I guess I don't get what is wrong with pkill emerge ?
Comment 5 Fabian Groffen gentoo-dev 2009-10-20 19:34:49 UTC
emerge should probably properly terminate its children when it receives a termination signal itself, if it doesn't yet already
Comment 6 Pacho Ramos gentoo-dev 2010-02-25 20:01:14 UTC
And maybe this could be extended to something like "--terminate-tests" (or other phase) for the cases where tests take years to end :-)