in reply to getppid() returns cached value
Any idea how to work around this problem ?
Sorry, maybe I'm missing the point, but you haven't actually said what "problem" you are experiencing.
As wazoox said, getppid will return 1 once the original process has been killed. The orphaned child process gets "adopted" by pid 1 (init). So it all seems correct to me.
If you can explain what you actually want the script to do, and what it's doing instead, that would help a lot.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: getppid() returns cached value
by pratik (Initiate) on May 26, 2005 at 13:32 UTC |