I have a task which is running in a loop. My application will use
ports, allocated memory etc and also have a function which will
close all the ports, free the allocated memory.
My questions is.
How to stop this task gracefully?.(i.e task should exit after freeing
my application's resources. Where i have to call my Free
resources method).
I have tried the following cases but both are not successful for me.
1. td <taskid> - It closes the task obnormallly(i.e exits without
freeing the resources).
2. kill (<taskId, signo). Before that I have implemented signal in my
application using sigInit() and signal() method calls.
Can any one guide me?
Thanks
Krishna kumar.
There are IMHO two options:
1. Use a kill and install a signal handler to perform task cleanup.
2. Install a task delete hook (See taskHookLib) and let the hook
perform the cleanup.
Good luck,
Manuel
"Krishna Kumar" <gkri...@india.adventnet.com> wrote in message
news:cba86284.0109...@posting.google.com...
David