psql: Set up cancel handler later

The cancel handler was uselessly set up even before the first connection
was opened.  By setting it up afterwards, the user can use Ctrl+C to
abort psql if the initial connection attempt hangs.

Reviewed-by: Dean Rasheed <[email protected]>
Reviewed-by: Ryan Kelly <[email protected]>

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/9099e4afe0e4101bc79f078be3e15639a048e633

Modified Files
--------------
src/bin/psql/startup.c |    4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)


-- 
Sent via pgsql-committers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers

Reply via email to