From: Christoph S. <csc...@am...> - 2006-12-22 13:49:25
|
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? Regards & merry XMas! Christoph Schwaiger Austin Schutz <te...@of...> To Christoph Schwaiger <csc...@am...> cc exp...@li... bcc Subject Re: [Expectperl-discuss] speed up object close Austin Schutz <te...@of...> Sent by: exp...@li... 22-12-06 03:58 > does: > foreach my $obj (@Objects) { > $obj->hard_close(); > > Can this be speeded up somehow? Shall I try to i.e. fork 8 children of > which each one is responsible for closing 10 objects? Why is the closure > of an expect object relatively slow? > Because it allows the process to die gracefully before it kill -9s it. The graceful manner is usually to get the process to terminate itself and just be ready for that. That's usually done by closing the handle, e.g. close ($obj), or sending "exit\r" to whatever you are logged into. If the child is ready to go away hard_close will return quickly. Austin ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Expectperl-discuss mailing list Exp...@li... https://lists.sourceforge.net/lists/listinfo/expectperl-discuss |