Re: [rrd-users] RRDp.pm error weirdness

This is a discussion on Re: [rrd-users] RRDp.pm error weirdness within the RRD Users forums, part of the Networking and Network Related category; well, i've "fixed" it for my purposes by changing RRDp.pm to "return $ERR = 1" ...


Go Back   Usenet Forums > Networking and Network Related > RRD Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-22-2007
mike newton
 
Posts: n/a
Default Re: [rrd-users] RRDp.pm error weirdness

well, i've "fixed" it for my purposes by changing RRDp.pm to "return
$ERR = 1" instead of just setting $ERR = 1 when $line matches ^ERROR. for my
immediate purposes this works, but i'm curious if this is a bug or my
misunderstanding of how this is supposed to work.

+m


mike newton wrote:
> while recently trying to debug a problem i was having using RRDp i
> wanted to have a script act based on the error message received. when
> my script just hung i decided to take a step back and do something
> simple like the following and that also hung:
>
> RRDp::start "/usr/bin/rrdtool";
> $cmd = "create buh.rrd --step 60 DS:in:DERIVE:0:10000
> RRA:AVERAGE:0.5:1:120";
> $RRDp::error_mode = 'catch';
> RRDp::cmd $cmd;
> my $answer = RRDp::read;
> print $RRDp::error . "\n" if $RRDp::error;
>
> so i decided to look at RRDp.pm and i noticed that the error handling
> section sees the error and sets $ERR = 1 but doesn't return so it gets
> stuck in the while(1) waiting for something to tell it to return.
>
> am i missing something?
>
> thx!
> +m
>


_______________________________________________
rrd-users mailing list
rrd-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:05 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0