]> granicus.if.org Git - postgresql/commit
psql: Set up cancel handler later
authorPeter Eisentraut <peter_e@gmx.net>
Thu, 3 Oct 2013 01:05:08 +0000 (21:05 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Thu, 3 Oct 2013 01:05:08 +0000 (21:05 -0400)
commit9099e4afe0e4101bc79f078be3e15639a048e633
tree47014fa67626fd8069dc97f506717eb10f198e30
parenteb5d87e5f3b827f5b26fe551006655d80c063d66
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 <dean.a.rasheed@gmail.com>
Reviewed-by: Ryan Kelly <rpkelly22@gmail.com>
src/bin/psql/startup.c