postgresql/src
Tom Lane 873ab97219 Use SA_RESTART for all signals, including SIGALRM.
The exclusion of SIGALRM dates back to Berkeley days, when Postgres used
SIGALRM in only one very short stretch of code.  Nowadays, allowing it to
interrupt kernel calls doesn't seem like a very good idea, since its use
for statement_timeout means SIGALRM could occur anyplace in the code, and
there are far too many call sites where we aren't prepared to deal with
EINTR failures.  When third-party code is taken into consideration, it
seems impossible that we ever could be fully EINTR-proof, so better to
use SA_RESTART always and deal with the implications of that.  One such
implication is that we should not assume pg_usleep() will be terminated
early by a signal.  Therefore, long sleeps should probably be replaced
by WaitLatch operations where practical.

Back-patch to 9.3 so we can get some beta testing on this change.
2013-06-15 15:39:51 -04:00
..
backend Use SA_RESTART for all signals, including SIGALRM. 2013-06-15 15:39:51 -04:00
bin Fix pg_isready to handle conninfo properly. 2013-06-11 03:03:16 +09:00
common pgindent run for release 9.3 2013-05-29 16:58:43 -04:00
include Be consistent about #define'ing configure symbols as "1" not empty. 2013-06-15 14:11:43 -04:00
interfaces Stamp shared-library minor version numbers for 9.4. 2013-06-14 14:49:46 -04:00
makefiles Blind attempt at fixing the non-MSVC Windows builds 2013-02-22 11:51:15 -03:00
pl PL/Python: Fix type mixup 2013-06-13 21:42:42 -04:00
port Use SA_RESTART for all signals, including SIGALRM. 2013-06-15 15:39:51 -04:00
template Remove _FORTIFY_SOURCE 2012-10-10 21:42:38 -04:00
test Fix unescaping of JSON Unicode escapes, especially for non-UTF8. 2013-06-12 13:35:24 -04:00
timezone pgindent run for release 9.3 2013-05-29 16:58:43 -04:00
tools Update RELEASE_CHANGES to describe library version bumping more fully. 2013-06-14 14:53:23 -04:00
tutorial Modernize string literal syntax in tutorial example. 2013-01-19 17:20:32 -05:00
.gitignore
DEVELOPERS
Makefile Create libpgcommon, and move pg_malloc et al to it 2013-02-12 11:21:05 -03:00
Makefile.global.in Remove whitespace from end of lines 2013-05-30 21:05:07 -04:00
Makefile.shlib Add pkg-config files for libpq and ecpg libraries 2013-03-31 16:58:40 -04:00
bcc32.mak Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
nls-global.mk NLS: Use msgmerge --previous option 2012-12-13 23:12:12 -05:00
win32.mak Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00