Hi. I made an important update on the functions. I should have include -d
'' to read. Not sure why I didn't notice it during the test back then. The
previous versions would only read a single id but that's fixed now. Good
thing I remembered the code after stumbling upon another problem.
I thought
It's actually simple with trap. Just catch SIGINT with a function and call
a function to kill the tree:
https://www.linuxquestions.org/questions/blog/konsolebox-210384/bash-functions-to-list-and-kill-or-send-signals-to-process-trees-34624/
Note killtree3. And that could be merged as one single fu
On Wednesday, April 10, 2013 02:43:12 PM Ilya Basin wrote:
> Hi.
> I have a script that creates some background tasks.
> I want the whole tree to be killed by Ctrl-C.
"tree"? If a script isn't coordinating with its subprocesses manually, then
the only real guaranteed way to kill a process and all
Hi.
I have a script that creates some background tasks.
I want the whole tree to be killed by Ctrl-C.
There's a requirement that the script process and its children must
belong to the same process group. This is why I can't enable job
control.
I don't want to use 'trap', because it adds complexit