Hi! On Tue, Dec 09, 2008 at 10:36:46PM -0800, Anirban Sinha wrote: >>How is it blocking indefinitely? Is wait() not returning -1 with >>errno == ECHILD when there are no children to reap? What led you to >>the conclusion that this code was blocking? (What platform are you >>running this on?)
>Hmm, agreed. Looks like I was wrong with my analysis. In any case, I am >running the portable version of the ntpd on Linux. I am definitely >observing the parent still alive and blocked (sleeping) even when the >child is dead. I need to do some more digging on this. IIRC, you can show the wait channel on Linux too, using something like ps alxww|grep ntpd Then you perhaps can see what the parent ntpd process is really waiting for. Kind regards, Hannah.