curl-library
Re: ftp testserver hung
Date: Tue, 26 Jun 2007 14:03:42 +0200
Hi,
current status:
have applied this patch to testcurl.pl on my autobuild host:
--- testcurl.pl.orig	2007-04-01 15:59:50.000000000 +0200
+++ testcurl.pl	2007-06-25 20:39:42.000000000 +0200
@@ -200,6 +200,15 @@
 sub mydie($){
     my $text=$_[0];
     logit "$text";
+    # check if we have test servers hanging around...
+    while (<tests/.*.pid>) {
+      open(I, $_) or die "Couldn't open $_: $!";
+      my $process = <I>;
+      chomp($process);
+      close(I) or die "Couldn't close $_: $!";
+      logit "trying to kill $_ process ($process)";
+      kill 1, $process;
+    }
     chdir $pwd; # cd back to the original root dir
 
     if ($pwd && $build) {
now if you look at my autobuild logs you can see that after each run it finds the pid files present;
so I believe that our test servers currently do not remove their pid files when terminating...
in addition I've flagged all *.pl files in ./tests to 755 - although doubt this is relevant.
Guen.
Received on 2007-06-26