Re: postgresql in FreeBSD jails: proposal

From: Mischa Sandberg <mischa_sandberg(at)telus(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: postgresql in FreeBSD jails: proposal
Date: 2008-01-16 17:13:23
Message-ID: 1200503603.478e3b33346ca@webmail.telus.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-bugs pgsql-committers pgsql-general pgsql-hackers pgsql-jdbc pgsql-odbc pgsql-patches

Quoting Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>:

> Mischa Sandberg <mischa_sandberg(at)telus(dot)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.

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message David Wall 2008-01-16 17:28:42 Re: Backup of live database
Previous Message Tom Lane 2008-01-16 17:09:55 Re: postgresql in FreeBSD jails: proposal

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2008-01-16 17:33:32 Re: postgresql in FreeBSD jails: proposal
Previous Message Tom Lane 2008-01-16 17:09:55 Re: postgresql in FreeBSD jails: proposal

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2008-01-16 17:33:32 Re: postgresql in FreeBSD jails: proposal
Previous Message Tom Lane 2008-01-16 17:09:55 Re: postgresql in FreeBSD jails: proposal

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2008-01-16 17:33:32 Re: postgresql in FreeBSD jails: proposal
Previous Message Gauthier, Dave 2008-01-16 17:11:33 Re: Sun acquires MySQL

Browse pgsql-hackers by date

  From Date Subject
Next Message Gregory Stark 2008-01-16 17:17:47 Re: Some ideas about Vacuum
Previous Message Alvaro Herrera 2008-01-16 17:12:34 Re: Some ideas about Vacuum

Browse pgsql-jdbc by date

  From Date Subject
Next Message Tom Lane 2008-01-16 17:33:32 Re: postgresql in FreeBSD jails: proposal
Previous Message Tom Lane 2008-01-16 17:09:55 Re: postgresql in FreeBSD jails: proposal

Browse pgsql-odbc by date

  From Date Subject
Next Message Tom Lane 2008-01-16 17:33:32 Re: postgresql in FreeBSD jails: proposal
Previous Message Tom Lane 2008-01-16 17:09:55 Re: postgresql in FreeBSD jails: proposal

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2008-01-16 17:33:32 Re: postgresql in FreeBSD jails: proposal
Previous Message Tom Lane 2008-01-16 17:09:55 Re: postgresql in FreeBSD jails: proposal