Use abort() instead of exit() to abort library functions

Peter Eisentraut <peter_e@gmx.net>

Commit: c6ea8ccea6bf23501962ddc7ac9ffdb99c8643e1
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2012-01-30T19:34:00Z
Releases: 9.2.0
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.

Files

PathChange+/−
src/interfaces/libpq/fe-print.c modified +8 −8
src/interfaces/libpq/libpq-int.h modified +1 −1
src/port/path.c modified +1 −1