diff options
Diffstat (limited to 'src/bin/psql/input.c')
-rw-r--r-- | src/bin/psql/input.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bin/psql/input.c b/src/bin/psql/input.c index b3fdd55c132..894fc8d4547 100644 --- a/src/bin/psql/input.c +++ b/src/bin/psql/input.c @@ -3,7 +3,7 @@ * * Copyright 2000 by PostgreSQL Global Development Group * - * $Header: /cvsroot/pgsql/src/bin/psql/input.c,v 1.15 2001/02/10 02:31:28 tgl Exp $ + * $Header: /cvsroot/pgsql/src/bin/psql/input.c,v 1.16 2001/02/27 08:13:27 ishii Exp $ */ #include "postgres_fe.h" #include "input.h" @@ -151,7 +151,11 @@ initializeInput(int flags) } #endif +#ifdef HAVE_ATEXIT atexit(finishInput); +#else + on_exit(finishInput); +#endif } |