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.