Quote:
Originally Posted by
MadeInGermany
I just checked my old script - it uses this in a loop, so kill 0 cannot be used.
Could you please post your code, or a simplified yet fully-functional structural equivalent?
Your "99%" solution is probably more like a "99.9999%" solution. It's extremely unlikely that you need anything better. However, I'm interested to see if yours is a situation in which I cannot make my approach work.
So long as the only things in the process group are the monitored and monitoring processes, I don't see why
kill 0 cannot be used.
Regards,
Alister
---------- Post updated at 04:53 PM ---------- Previous update was at 04:44 PM ----------
Quote:
Originally Posted by
rbatte1
I've made it work on AIX (4.3.3, 5.1 & 6.1) , HP-UX (11.11i) and RHEL (6.3)
...<snip>...
So, alister - absolutely fantastic. You should see some of the rubbish I've coded in the past to try to do the same sort of thing. I regret that I can only thank a post once.
Regarding rubbish code, we've all been there. I have actually never used this code; it is something I come up with yesterday while pondering this thread and the possibility of a portable solution without a pid race. For that reason I appreciate your multi-platform testing. Thank you very much.
Regards,
Alister