On 13 August 2010 00:00, deepak kumar <deepakkuma...@gmail.com> wrote:
> Hi everyone.
> I have a process running. Is it is possible to inform the process about the
> system shutdown, restart or a kill signal, so
> that the process can do some jobs before it gets killed.
>
> --

Processes are notified of an impending shutdown by the signal SIGTERM.
You could write a signal handler for it (see man 2 signal), though I'm
not sure it will have enough time to execute if the delay is set to 0.
SIGKILL and SIGSTOP cannot be handled.

Cheers
Naufal

-- 
"Freedom is the only law". 
"Freedom Unplugged"
http://www.ilug-tvm.org

You received this message because you are subscribed to the Google
Groups "ilug-tvm" group.
To control your subscription visit 
http://groups.google.co.in/group/ilug-tvm/subscribe
To post to this group, send email to ilug-tvm@googlegroups.com
To unsubscribe from this group, send email to
ilug-tvm-unsubscr...@googlegroups.com



For details visit the google group page: 
http://groups.google.com/group/ilug-tvm?hl=en

Reply via email to