Re: Patch to avoid SIGQUIT accident

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Patch to avoid SIGQUIT accident
Дата
Msg-id 80020.1540164045@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Patch to avoid SIGQUIT accident  (Renato dos Santos <shazaum@gmail.com>)
Ответы Re: Patch to avoid SIGQUIT accident  (Renato dos Santos <shazaum@gmail.com>)
Re: Patch to avoid SIGQUIT accident  (Christoph Berg <myon@debian.org>)
Re: Patch to avoid SIGQUIT accident  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Renato dos Santos <shazaum@gmail.com> writes:
> I have been using psql for quite a few days. And I have accidentally pressed the CTRL + \ keys that sends the signal
QUIT+Coredump(CTRL+4 also sends the same signal). 
> I hope it's relevant to more people. (This has bothered me.)

> this patch avoids the output of the CLI using ctrl + \ is the same as ctrl + c

I'm fairly confused about why this would be a good idea, for several
reasons:

* If you have a tendency to make that typo, why would you want a fix that
only affects psql and not any of your other applications?  (If you do
want the latter, there are already ways to do it, eg you could remap
SIGQUIT to some other key via stty, or disable core dumps via ulimit.)

* If we put this in, what becomes of people who actually want a core dump,
eg for debugging?

* SIGQUIT is a fairly well-known way to get out of an application when all
else fails.  People who aren't familiar with psql's exit commands might
find it pretty unfriendly of us to block this off.

            regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Alexander Korotkov
Дата:
Сообщение: Re: Pluggable Storage - Andres's take
Следующее
От: Renato dos Santos
Дата:
Сообщение: Re: Patch to avoid SIGQUIT accident