Re: psql: core dumped

Alvaro Herrera <alvherre@commandprompt.com>

From: Alvaro Herrera <alvherre@commandprompt.com>
To: Jeremy Drake <pgsql@jdrake.com>
Cc: Philip Yarra <philip@utiba.com>, Mario <gonzalemario@gmail.com>, pgsql-hackers@postgresql.org
Date: 2006-12-20T01:12:41Z
Lists: pgsql-hackers
Jeremy Drake wrote:
> On Wed, 20 Dec 2006, Philip Yarra wrote:
> 
> > Mario wrote:
> > >   Even if you get a core dumped every time you press CTRL+\  ?  why?
> >
> > Try ulimit -c 0, then run it (you should get no core dump)
> > Then ulimit -c 500000, then run it (you should get a core dump)
> >
> > SIGQUIT is supposed to dump core. Ulimit settings can suppress generation of
> > core files. The difference between your machine and your friend's is likely
> > just the ulimit settings.
> 
> If you want to type CTRL+\ you can redefine what char generates SIGQUIT
> with stty quit command.

I think the problem Mario is really trying to solve is quitting at
psql's "Password: " prompt.  Ctrl-C is ignored at that point apparently.
SIGQUIT (thus Ctrl-\ in most people's setup) does it but it also dumps
core.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support