On Fri, May 25, 2007 at 09:21:04AM +0200, Andrew Beekhof wrote: > On 5/24/07, Brian Reichert <[EMAIL PROTECTED]> wrote: > >On Thu, May 24, 2007 at 06:05:27PM +0200, Andrew Beekhof wrote: > >> it tells you if the pid has been reused by another, unrelated, process. > >> its just an extra check available to linux users. > > > >Doesn't the expression I cite above also test for reused and unrelated > >(where 'unrelated' means 'not me')? > > no. > > pid !=getpid() will always fail - even when another heartbeat process > _is_ running. > > unrelated != not me > "unrelated" means "not another heartbeat process".
Hmm, then I fear I'm misunderstanding the patch. I see it comparing /proc/<pid>/exe to /proc/getpid()/exe to see if they are the same. How is that different from comparing pid to getpid()? -- Brian Reichert <[EMAIL PROTECTED]> 55 Crystal Ave. #286 Daytime number: (603) 434-6842 Derry NH 03038-1725 USA BSD admin/developer at large _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
