Gentoo Archives: gentoo-amd64

From: Frank Peters <frank.peters@×××××××.net>
To: gentoo-amd64@l.g.o
Subject: Re: [gentoo-amd64] Re: KDE 4.3.0 'panel ghosts'
Date: Sat, 29 Aug 2009 13:37:44
Message-Id: 20090829144631.335e1612.frank.peters@comcast.net
In Reply to: [gentoo-amd64] Re: KDE 4.3.0 'panel ghosts' by Duncan <1i5t5.duncan@cox.net>
1 On Sat, 29 Aug 2009 17:39:21 +0000 (UTC)
2 Duncan <1i5t5.duncan@×××.net> wrote:
3
4 >
5 > Note that there's also the killall command, which according to the
6 > manpage, kills "processes by name". Of course, it'll kill /all/ the
7 > processes by that name, so may not be what you want if you have multiple
8 > separate firefox processes running at the same time, for instance, but
9 > it's very useful, none-the-less, since where it /can/ be used, it saves
10 > the step of looking up the pid.
11 >
12
13 Yes, that's all quite true, but there still may be problems.
14
15 After I start a single instance of firefox, here is what "ps ax" shows:
16
17 1987 ? S 0:00 /bin/sh /usr/local/bin/firefox
18 1999 ? S 0:00 /bin/sh /opt/firefox35/run-mozilla.sh /opt/firefox35/firefox-bi
19 2003 ? Sl 0:00 /opt/firefox35/firefox-bin
20
21 There are already three processes associated with this single instance,
22 and the names are not obvious. To kill all of them, it will usually suffice
23 to kill only the last process which in this case is 2003. But that
24 strategy won't always work. It's always best to check with ps and kill
25 what needs to be killed.
26
27 > Also, with both kill and killall, the "s " shouldn't be needed. kill -9
28 > PID or killall -9 name should work, tho both will also take the -s form,
29 > too. FWIW, they'll also take the named signal. -15/-TERM is the default
30 > if no signal is specified. That tries to kill an application gracefully,
31 > giving it time to save its work or whatever. As such, it may or may not
32 > work. -9/-KILL is the "kill and I really mean it" signal, NOT allowing
33 > the application a graceful exit, simply directing the kernel to kill it
34 > outright.
35 >
36
37 Yes, that's also very true, but I figure that if Flash Player is crashing
38 firefox, a "kill -s 9" is in order. The best course would be to first attempt
39 a "kill PID" with no options. This will allow the process, as you indicate,
40 to close any open file handles, etc. But if "kill PID" should fail, then
41 "kill -s 9 PID" will almost certainly stop the process in a quick and brutal
42 fashion. Again, use the ps command to check the result. Sometimes, however,
43 as you indicate, even "kill -s 9" will fail and a reboot is the only way to
44 eliminate the process.
45
46 Frank Peters

Replies

Subject Author
Re: [gentoo-amd64] Re: KDE 4.3.0 'panel ghosts' Mark Haney <mhaney@××××××××××××.org>