Re: In MacOS, psql reacts on SIGINT in a strange fashion (Linux is fine)

From: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
To: Dmitry Koterov <dmitry(dot)koterov(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: In MacOS, psql reacts on SIGINT in a strange fashion (Linux is fine)
Date: 2024-04-13 23:39:16
Message-ID: CA+hUKGJauE+UDqst4yjkz+QfyLGv5LONuOtkt6b7pD43Z3HExw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sun, Apr 14, 2024 at 11:18 AM Dmitry Koterov
<dmitry(dot)koterov(at)gmail(dot)com> wrote:
> Can it be e.g. readline? Or something related to tty or session settings which psql could modify (I did not find any in the source code though).

I was wondering about that. Are you using libedit or libreadline?
What happens if you build without readline/edit support? From a quick
glance at libedit, it does a bunch of signal interception, but I
didn't check the details. It is interested in stuff like SIGWINCH,
the window-resized-by-user signal.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2024-04-13 23:49:33 Re: In MacOS, psql reacts on SIGINT in a strange fashion (Linux is fine)
Previous Message David G. Johnston 2024-04-13 23:27:41 Re: In MacOS, psql reacts on SIGINT in a strange fashion (Linux is fine)