in reply to Re^6: how to kill background process when script exit?
in thread how to kill background process when script exit?
Then the code I gave you should already work and kill the child at the end of the program. Maybe closing the filehandle to the kid and also adding a call to kill outside the END block helps to kill the kid earlier.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: how to kill background process when script exit?
by Allasso (Monk) on Feb 20, 2011 at 14:43 UTC | |
by Corion (Patriarch) on Feb 20, 2011 at 14:51 UTC | |
by Allasso (Monk) on Feb 20, 2011 at 19:02 UTC | |
by Allasso (Monk) on Feb 20, 2011 at 23:36 UTC | |
by Allasso (Monk) on Feb 20, 2011 at 18:58 UTC |