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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
Cc: Dmitry Koterov <dmitry(dot)koterov(at)gmail(dot)com>, "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-14 00:09:11
Message-ID: 274744.1713053351@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Thomas Munro <thomas(dot)munro(at)gmail(dot)com> writes:
> On Sun, Apr 14, 2024 at 11:49 AM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> OK, I tried dtruss'ing psql on macOS. What I see is that with
>> Apple's libedit, the response to SIGINT includes this:
>> kill(0, 2) = 0 0

> https://github.com/NetBSD/src/blob/1de18f216411bce77e26740327b0782976a89965/lib/libedit/sig.c#L110

Ah, I was wondering if that was from upstream libedit or was an
Apple-ism. Somebody should file a bug.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Imseih (AWS), Sami 2024-04-14 01:56:09 Re: allow changing autovacuum_max_workers without restarting
Previous Message Dmitry Koterov 2024-04-14 00:01:57 Re: In MacOS, psql reacts on SIGINT in a strange fashion (Linux is fine)