glaredb icon indicating copy to clipboard operation
glaredb copied to clipboard

(Local): Hitting ctrl-c with a query running shouldn't exit the program

Open scsmithr opened this issue 1 year ago • 2 comments

Description

Title.

I'd expect ctrl-c to cancel the currently running query, not exit the program.

scsmithr avatar Jan 12 '24 18:01 scsmithr

@scsmithr Can you make a reproducible example? What shell are you using?

We have CTRL+c configured as you described. Only CTRL+d exits the program.ÏÏ

universalmind303 avatar Jan 12 '24 21:01 universalmind303

sean@Seans-Air ~ % ./glaredb
GlareDB (v0.8.0)
Type \help for help.
> create external database pg from postgres options (connection_string = 'postgres://postgres:[email protected]:5432/postgres');
^C
sean@Seans-Air ~ % 

That postgres instance doesn't exist, so the query would error once the connection times out. But if you ctrl+c, it'll exit.

Using zsh.

scsmithr avatar Jan 12 '24 21:01 scsmithr