From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mischa Sandberg <mischa_sandberg@telus.net>
Cc: pgsql-hackers@postgresql.org
Subject: Re: postgresql in FreeBSD jails: proposal
Date: Wed, 16 Jan 2008 12:09:55 -0500
Message-ID: <25135.1200503395@sss.pgh.pa.us> (raw)
In-Reply-To: <1200501702.478e33c61b74e@webmail.telus.net>
References: <1200501702.478e33c61b74e@webmail.telus.net>
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,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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, mischa_sandberg@telus.net, pgsql-hackers@postgresql.org
Subject: Re: postgresql in FreeBSD jails: proposal
In-Reply-To: <25135.1200503395@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox