Any API for this ?
If i must poll how do i know if the process-id still represents the
same process and is not a recyclet one after the observable process
died ?
http://www.daimi.au.dk/~kasperd/comp.os.linux.development.faq.html#waitnotchild
>
> If i must poll how do i know if the process-id still represents the
> same process and is not a recyclet one after the observable process
> died ?
You can check the starttime of the process. If the
starttime has changed it means the pid was recycled.
--
Kasper Dupont -- der bruger for meget tid paa usenet.
I'd rather be a hammer than a nail.
Or Lothar can check the command line in /proc/<pid>/cmdline to match the
original program's.
--
Josef Möllers (Pinguinpfleger bei FSC)
If failure had no penalty success would not be a prize
-- T. Pratchett
That is another option. Which one is most reliable?
which one is most portable?