Sujet : Re: Cleaning up background processes
De : naddy (at) *nospam* mips.inka.de (Christian Weisgerber)
Groupes : comp.unix.shellDate : 11. May 2024, 15:37:57
Autres entêtes
Message-ID : <slrnv3v0m5.17e3.naddy@lorvorc.mips.inka.de>
References : 1 2 3 4
User-Agent : slrn/1.0.3 (FreeBSD)
On 2024-05-08, vallor <
vallor@cultnix.org> wrote:
I'm sorry, but I've waited and nobody said anything, so
I have to ask: Why couldn't you trap "kill -1 0" INT?
There is the cosmetic problem that you'll get termination notices
referring to the new signal ("Hangup"), so I'll go with the less
confusing
trap "kill -TERM 0" INT
but yes, it may be as simple as that. Let me run some tests...
-- Christian "naddy" Weisgerber naddy@mips.inka.de