Re: postgresql in FreeBSD jails: proposal

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Mischa Sandberg <mischa_sandberg(at)telus(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: postgresql in FreeBSD jails: proposal
Date: 2008-01-16 17:09:55
Message-ID: 25135.1200503395@sss.pgh.pa.us
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

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,NextShmSegID))
> + continue;

Isn't the last part of that test backward? If it isn't, I don't
understand what it's for at all.

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Mischa Sandberg 2008-01-16 17:13:23 Re: postgresql in FreeBSD jails: proposal
Previous Message Mischa Sandberg 2008-01-16 16:41:42 postgresql in FreeBSD jails: proposal

Browse pgsql-bugs by date

  From Date Subject
Next Message Mischa Sandberg 2008-01-16 17:13:23 Re: postgresql in FreeBSD jails: proposal
Previous Message Mischa Sandberg 2008-01-16 16:41:42 postgresql in FreeBSD jails: proposal

Browse pgsql-committers by date

  From Date Subject
Next Message Mischa Sandberg 2008-01-16 17:13:23 Re: postgresql in FreeBSD jails: proposal
Previous Message Mischa Sandberg 2008-01-16 16:41:42 postgresql in FreeBSD jails: proposal

Browse pgsql-general by date

  From Date Subject
Next Message Gauthier, Dave 2008-01-16 17:11:33 Re: Sun acquires MySQL
Previous Message Joshua D. Drake 2008-01-16 17:06:11 Re: Sun's PostgreSQL contribution?

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2008-01-16 17:12:34 Re: Some ideas about Vacuum
Previous Message Andrew Dunstan 2008-01-16 16:54:43 Re: to_char incompatibility

Browse pgsql-jdbc by date

  From Date Subject
Next Message Mischa Sandberg 2008-01-16 17:13:23 Re: postgresql in FreeBSD jails: proposal
Previous Message Mischa Sandberg 2008-01-16 16:41:42 postgresql in FreeBSD jails: proposal

Browse pgsql-odbc by date

  From Date Subject
Next Message Mischa Sandberg 2008-01-16 17:13:23 Re: postgresql in FreeBSD jails: proposal
Previous Message Mischa Sandberg 2008-01-16 16:41:42 postgresql in FreeBSD jails: proposal

Browse pgsql-patches by date

  From Date Subject
Next Message Mischa Sandberg 2008-01-16 17:13:23 Re: postgresql in FreeBSD jails: proposal
Previous Message Mischa Sandberg 2008-01-16 16:41:42 postgresql in FreeBSD jails: proposal