diff options
| author | Peter Eisentraut <peter_e@gmx.net> | 2011-12-27 20:57:59 +0200 |
|---|---|---|
| committer | Peter Eisentraut <peter_e@gmx.net> | 2011-12-27 20:57:59 +0200 |
| commit | d383c23f6fbc4a79dae66483cf4f7051121008ad (patch) | |
| tree | 82864f71bb4c14151edaa9fd9d8e7ab2372f26ae /src/bin/psql | |
| parent | c317a3ac167d36244e8dd5add679b4e9ff36ea16 (diff) | |
| download | postgresql-d383c23f6fbc4a79dae66483cf4f7051121008ad.tar.gz | |
Remove support for on_exit()
All supported platforms support the C89 standard function atexit()
(SunOS 4 probably being the last one not to), and supporting both
makes the code clumsy.
Diffstat (limited to 'src/bin/psql')
| -rw-r--r-- | src/bin/psql/input.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/bin/psql/input.c b/src/bin/psql/input.c index ec0e6e1d49..870251bb84 100644 --- a/src/bin/psql/input.c +++ b/src/bin/psql/input.c @@ -45,12 +45,7 @@ static int history_lines_added; #define NL_IN_HISTORY 0x01 #endif -#ifdef HAVE_ATEXIT static void finishInput(void); -#else -/* designed for use with on_exit() */ -static void finishInput(int, void *); -#endif /* @@ -313,11 +308,7 @@ initializeInput(int flags) } #endif -#ifdef HAVE_ATEXIT atexit(finishInput); -#else - on_exit(finishInput, NULL); -#endif } @@ -416,11 +407,7 @@ saveHistory(char *fname, int max_lines, bool appendFlag, bool encodeFlag) static void -#ifdef HAVE_ATEXIT finishInput(void) -#else -finishInput(int exitstatus, void *arg) -#endif { #ifdef USE_READLINE if (useHistory && psql_history) |
