Mailinglist Archive: opensuse (3470 mails)
| < Previous | Next > |
Re: [SLE] How do I kill a Zombie?
- From: Mads Martin Joergensen <mmj@xxxxxxxxxxxxxx>
- Date: Tue, 23 Sep 2003 09:08:20 +0200
- Message-id: <20030923070820.GA1637@xxxxxxxxxxxxxx>
* Alin Dobre <alin.dobre@xxxxxxxxxxxxxxxx> [Sep 23. 2003 08:23]:
> Hi,
>
> It works
> killall -1 init
> restarts the init process (for example the inittab file is re-read).
> (HUP) signal works, so "for which it has not installed a signal
> handler" is not true.
There's a signal handler for signal 1, which is HUP, yes. There's even
for more, if you look in the init source code:
/*
* We got a signal (HUP PWR WINCH ALRM INT)
*/
static
void signal_handler(int sig)
{
ADDSET(got_signals, sig);
}
What I quoted from the manual page was this:
"It is impossible to send a signal to task number one, the
init process, for which it has not installed a signal hanĀ
dler. This is done to assure the system is not brought
down accidentally."
If you application does not install a signalhandler for SIGKILL, that
does not mean your application is not killed, if we send kill -9 to it.
In the case of init, nothing happens.
--
Mads Martin Joergensen, http://mmj.dk
"Why make things difficult, when it is possible to make them cryptic
and totally illogical, with just a little bit more effort?"
-- A. P. J.
> Hi,
>
> It works
> killall -1 init
> restarts the init process (for example the inittab file is re-read).
> (HUP) signal works, so "for which it has not installed a signal
> handler" is not true.
There's a signal handler for signal 1, which is HUP, yes. There's even
for more, if you look in the init source code:
/*
* We got a signal (HUP PWR WINCH ALRM INT)
*/
static
void signal_handler(int sig)
{
ADDSET(got_signals, sig);
}
What I quoted from the manual page was this:
"It is impossible to send a signal to task number one, the
init process, for which it has not installed a signal hanĀ
dler. This is done to assure the system is not brought
down accidentally."
If you application does not install a signalhandler for SIGKILL, that
does not mean your application is not killed, if we send kill -9 to it.
In the case of init, nothing happens.
--
Mads Martin Joergensen, http://mmj.dk
"Why make things difficult, when it is possible to make them cryptic
and totally illogical, with just a little bit more effort?"
-- A. P. J.
| < Previous | Next > |