Ensure that 'errno' is saved and restored by all signal handlers that
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 18 Dec 2000 17:33:42 +0000 (17:33 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 18 Dec 2000 17:33:42 +0000 (17:33 +0000)
commit5491233f5245c464be2286ad894448b21ef757db
tree8badaae022de82ec4cd53ffe42e2c22e681c394d
parentc431db9714bfca24f05fd301ae2f027f83689e4f
Ensure that 'errno' is saved and restored by all signal handlers that
might change it.  Experimentation shows that the signal handler call
mechanism does not save/restore errno for you, at least not on Linux
or HPUX, so this is definitely a real risk.
src/backend/commands/async.c
src/backend/postmaster/postmaster.c
src/backend/storage/lmgr/proc.c
src/backend/tcop/postgres.c
src/bin/psql/common.c
src/interfaces/libpq/fe-connect.c