[smokeping-users] smoketrace starting

Tobias Oetiker tobi at oetiker.ch
Wed Jun 18 15:50:26 CEST 2008


Hi Lars,

interesting ... so try this:

Index: Tr.pm
===================================================================
--- Tr.pm       (revision 1017)
+++ Tr.pm       (working copy)
@@ -1,6 +1,6 @@
 package Qooxdoo::Services::Tr;
 use strict;
-use POSIX qw(setsid :sys_wait_h);
+use POSIX qw(setsid);
 use Time::HiRes qw(usleep);
 use Socket;
 sub GetAccessibility {
@@ -103,7 +103,8 @@
             $size = -s $fh;
             # make sure we reap any zombi instances of tr
             # this is especially important when running with speedy of fastcgi
-            waitpid($handle,WNOHANG);
+            # 1 = WNOHANG
+            waitpid($handle,1);
             $again = kill(0, $handle);
             usleep(1000*300) if $rounds;
 #           print STDERR "$again, $handle, $size, $point\n";


cheers
tobi
Today Lars Hecking wrote:

> Tobias Oetiker writes:
> > Lars,
> >
> > in that case , uncomment the DEBUG line in tr.cgi, this should give
> > some more info, check the apache error log too
>
>  This is perl-5.8.0-89.10, RHEL3u6.
>
> [Wed Jun 18 14:24:55 2008] [error] [client 10.9.2.5] Send qx.io.remote.ScriptTransport._requestFinished(1, {"error":{"origin":1,"code":2,"message":"Service 'Qooxdoo::Services::Tr' could not be loaded (\":sys_wait_h\" is not exported by the POSIX module\nCan't continue after import errors at /usr/lib/perl5/5.8.0/i386-linux-thread-multi/POSIX.pm line 19\nBEGIN failed--compilation aborted at /usr/local/lib/Qooxdoo/Services/Tr.pm line 3.\nCompilation failed in require at (eval 24) line 3.\n)"},"id":1});, referer: http://www/smokeping/tr.html
>
>
> _______________________________________________
> smokeping-users mailing list
> smokeping-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
>
>

-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten
http://it.oetiker.ch tobi at oetiker.ch ++41 62 213 9902



More information about the smokeping-users mailing list