From: Chet Ramey Subject: Re: trapped SIGTERM unexpectedly makes bash exit when received Date: Mon, 12 Oct 2026 10:32:10 -0400
>> Well, SIGTERM has nothing to do with tty's closure, why does it >> do that *on SIGTERM*? >Because terminal emulators send SIGTERM to the foreground process group >when you use the `close' button instead of exiting the running application. I don't claim any special knowledge or authority, but wouldn't that apply more to HUP than TERM? HUP is the usual accepted signal for any kind of "the connection to the user has gone away" sort of thing. I've never heard of TERM being used in that sort of situation. ================================================================================= Please do not send me replies to my posts on the list. I always read the replies via the web archive, so CC'ing to me is unnecessary. When responding to my posts, please try to refrain from giving bureaucratic answers. If you have nothing useful to say, then just click Next and go on. BTW, ain't interested in kludgey workarounds - got enough of my own! (YT id: 6H1lcubN0oE)
