Re: Timeout on external scripts
Andreas Plesner Jacobsen <[email protected]> Fri, 3 Oct 2003 09:55:20 +0200
| Newsgroups | gmane.network.mrtg.devel |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Oct 03, 2003 at 02:18:23AM +0200, Lars Rune Bjørnevik wrote: > > Do you know a way to add a timeout in the > "sub getexternal" routine in ber.pm (in line 1637?): You could do magic with a SIGALRM handler and alarm(), try perldoc -f alarm. An easier approach might be that you just troubleshoot your external scripts and make sure that they add a timer to their I/O operations. -- Andreas Plesner Jacobsen | if it GLISTENS, gobble it!! -- Unsubscribe mailto:[email protected]?subject=unsubscribe Help mailto:[email protected]?subject=help Archive http://www.ee.ethz.ch/~slist/mrtg-developers