Re: postgresql in FreeBSD jails: proposal - Mailing list pgsql-hackers

From Mischa Sandberg
Subject Re: postgresql in FreeBSD jails: proposal
Date
Msg-id 1200503603.478e3b33346ca@webmail.telus.net
Whole thread Raw
In response to Re: postgresql in FreeBSD jails: proposal  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: postgresql in FreeBSD jails: proposal  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Quoting Tom Lane <tgl@sss.pgh.pa.us>:

> Mischa Sandberg <mischa_sandberg@telus.net> writes:
> > +               /* In a FreeBSD jail, you can't "kill -0" a
> postmaster
> > +                * running in a different jail, so the shm seg
> might
> > +                * still be in use. Safer to test nattch ?
> > +                */
> > +               if (kill(1,0) && errno == ESRCH &&
> PGSharedMemoryIsInUse(0,NextShmemSegID))
> > +                       continue;
> 
> Isn't the last part of that test backward?  If it isn't, I don't
> understand what it's for at all.

Serious blush here. Yes.



pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Some ideas about Vacuum
Next
From: Gregory Stark
Date:
Subject: Re: Some ideas about Vacuum