in reply to Re: kill thread or fork processes
in thread kill thread or fork processes

It would be a bit difficult for two childred to signal each other as they wouldn't know the other's PID. Better to have child and parent handle the two tasks: The parent gets the child's PID from the fork() call, and the child can get the parent's PID using ppid().

Remember: There's always one more bug.

Replies are listed 'Best First'.
Re^3: kill thread or fork processes
by blazar (Canon) on May 16, 2006 at 13:46 UTC

    That's what I meant. I guess... ;-)