pgsql: Ignore SIGSYS during initdb.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Ignore SIGSYS during initdb.
Date: 2013-10-25 01:52:11
Message-ID: E1VZWZP-0007jr-IT@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Ignore SIGSYS during initdb.

This prevents the recently-added probe for shm_open() from crashing
on platforms that are impolite enough to deliver a signal rather than
returning ENOSYS for an unimplemented kernel call. At least on the
one known example (HPUX 10.20), ignoring SIGSYS does result in the
desired behavior of getting an ENOSYS error return instead.

Per discussion, we might later wish to do this in the backend as well,
but for now it seems sufficient to do it in initdb.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/5e1e47c7c00d01d1b2fd3a4354f48be427a30f67

Modified Files
--------------
src/bin/initdb/initdb.c | 5 +++++
1 file changed, 5 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2013-10-25 02:44:57 Re: [COMMITTERS] pgsql: Move rmtree() from libpgport to libpgcommon
Previous Message Tom Lane 2013-10-25 01:44:20 pgsql: Use improved vsnprintf calling logic in more places.