Saturday, August 6, 2011

KILL REALLY DOES NOT KILL

KILL REALLY DOES NOT KILL

kill is not really meant only
to kill a process.  But main
intention is to send a signal
to process.And the process
handles these signals to do
various tasks.


kill -INT 1234
#where 1234 is the Process ID
is really, this set an
interrupt signal, Ctrl-C is an
example of interupt signal given
to shell.


kill -HUP 1234
#some UNIX daemons handle this,
to do refreshing business.


kill -KILL 1234
This is the sure kill,which
cannot be handled by any process.
Also know as, kill -9 1234.

Just, check the in the file
/usr/include/sys/signal.h for all
signals on the system.

More about this can be found on
kill and signal man pages.

Thanks,
Santhosh Kumar Reddy

No comments:

Post a Comment