It's been too long since I've done down and dirty programming, so I'm a bit rusty, but I have just encountered an situation that puzzles me.
I want to watch for the termination of a process that isn't my direct child, and I'd prefer and event-based method. I now realize waitpid(2) can't do this because it just doesn't inform the parent of a child process termination, it frees up the child's resources. So I'd really need something like a watchpid() function that does only the notification half of a waitpid(). Is there a standard event-based method for watching for a non-direct-child process termination? I have used polling methods (checking existence of /proc/$pid is my favorite) but that's expensive by comparison especially if you need high resolution timing. Regards, Mario DeFazio _______________________________________________ ast-users mailing list [email protected] https://mailman.research.att.com/mailman/listinfo/ast-users
