]> granicus.if.org Git - postgresql/commit
Use abort() instead of exit() to abort library functions
authorPeter Eisentraut <peter_e@gmx.net>
Mon, 30 Jan 2012 19:34:00 +0000 (21:34 +0200)
committerPeter Eisentraut <peter_e@gmx.net>
Mon, 30 Jan 2012 19:34:00 +0000 (21:34 +0200)
commitc6ea8ccea6bf23501962ddc7ac9ffdb99c8643e1
tree30de0f6e9613755ca99ed755653f96b3bb375286
parent423ee49b491ee966aa06259772dc38819cab786a
Use abort() instead of exit() to abort library functions

In some hopeless situations, certain library functions in libpq and
libpgport quit the program.  Use abort() for that instead of exit(),
so we don't interfere with the normal exit codes the program might
use, we clearly signal the abnormal termination, and the caller has a
chance of catching the termination.

This was originally pointed out by Debian's Lintian program.
src/interfaces/libpq/fe-print.c
src/interfaces/libpq/libpq-int.h
src/port/path.c