Christopher Kings-Lynne <chriskl@familyhealth.com.au> writes:
>> SIGQUIT is supposed to do that.
> Seems to be a libreadline thing:
No, it's a built-in thing. See "man stty", "man tty(4)", "man termio"
or related topics depending on your platform. The point is that the
kernel terminal driver takes that as a command to send SIGQUIT to your
program, not much different from mapping control-C to SIGINT for
example. And the default handling for SIGQUIT is stop+dump core.
It's a feature, not a bug.
regards, tom lane