From: Austin S. <te...@of...> - 2006-12-23 05:14:36
|
On Fri, Dec 22, 2006 at 02:49:11PM +0100, Christoph Schwaiger wrote: > Hello Austin, > > thanks for your answer. Currently, I'm already using hard_close, but > wonder, due to the many objects I close sequentially, even hard_close > takes too long. > Would you have an idea how to speed the closure up? > you can always just kill(9, $expect->pid()); and then wait(); By default nothing does that because sending signals other than 9 allows the process to clean itself up before exit. But that is the fastest way to make sure it goes away _now_. In fact you can skip on the wait() if you don't mind leaving zombies around until your perl process exits. Austin |