diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2001-03-23 00:36:38 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2001-03-23 00:36:38 +0000 |
commit | a062473696aa6e0944951b719c8e8a45eb8f526e (patch) | |
tree | ec37ee2520a192c3ea63618e115b75b09a6fb038 /src/bin/psql/startup.c | |
parent | b32cac8055118d264b27b1073d3d43e9a127130e (diff) |
Fix problems with coredumps due to ^C when longjmp buffer isn't valid.
Now, we will only catch ^C at times when it is valid.
Diffstat (limited to 'src/bin/psql/startup.c')
-rw-r--r-- | src/bin/psql/startup.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/bin/psql/startup.c b/src/bin/psql/startup.c index 55ad9692c66..5729b3e27e5 100644 --- a/src/bin/psql/startup.c +++ b/src/bin/psql/startup.c @@ -3,7 +3,7 @@ * * Copyright 2000 by PostgreSQL Global Development Group * - * $Header: /cvsroot/pgsql/src/bin/psql/startup.c,v 1.45 2001/03/22 04:00:23 momjian Exp $ + * $Header: /cvsroot/pgsql/src/bin/psql/startup.c,v 1.46 2001/03/23 00:36:38 tgl Exp $ */ #include "postgres_fe.h" @@ -223,10 +223,6 @@ main(int argc, char *argv[]) SetVariable(pset.vars, "PORT", PQport(pset.db)); SetVariable(pset.vars, "ENCODING", pg_encoding_to_char(pset.encoding)); -#ifndef WIN32 - pqsignal(SIGINT, handle_sigint); /* control-C => cancel */ -#endif - /* * Now find something to do */ |