On Wed, Mar 22, 2006, Bernhard Reiter wrote: > Am Dienstag, 21. März 2006 17:48 schrieb Simon J Mudd: > > Torsten Homeyer <[EMAIL PROTECTED]> writes: > > > Ralf S. Engelschall wrote: > > > > > "ps -elf" is not portable enough. Better would be something > > > > like a "kill -0 `cat master.pid`". > > > If you are going to test for the postfix process in the process list > > please check it is the one you expect (the OpenPKG postfix master), > > not just "any postfix master" process before you decide to kill it. > > According to my "kill" manpages, "kill -0" will only check if the process > exists, not try to actually send a signal to it.
Yes, of course. But that's what you want, right? You want to make sure that the process exists. Sure, there is still the possibility that a _NEW AND DIFFERENT_ process exists. But this one cannot solve easily. If one would like to make sure that it really _IS_ the original Postfix process one would have to speak some protocol to it or require non-portable "ps" or "lsof" constructs. Ralf S. Engelschall [EMAIL PROTECTED] www.engelschall.com ______________________________________________________________________ The OpenPKG Project www.openpkg.org User Communication List openpkg-users@openpkg.org