in reply to Re^3: how to kill background process when script exit?
in thread how to kill background process when script exit?
This likely is because the globals are only cleaned up on global destruction, that is, they live until after the last END block has run. As you kill the child before that, this allows things to work as expected.
|
|---|