[ic] Premature end of script headers.

Geoff Sternecker interchange-users@icdevgroup.org
Mon Apr 14 16:46:00 2003


On Friday 11 April 2003 04:27 pm, JOHN wrote:

> This might help.. try it.
> 
> "it is a general incompatibility between perl 5.8.0 and
> interchange."
> Here is a variation on Frederic's patch that I made based on
> some comments 
> about this problem in the interchange-core list.  It puts a
> limit on the 
> number of flock attempts to prevent an infinite loop.
> 
> --- Util.orig.pm        2003-03-17 16:23:06.000000000 -0500
> +++ Util.pm     2003-03-17 16:33:33.000000000 -0500
> @@ -1413,7 +1413,12 @@
>       my $flag = $excl ? $flock_LOCK_EX : $flock_LOCK_SH;
> 
>       if ($wait) {
> -        flock($fh, $flag) or die "Could not lock file: $!\n";
> +       my $failedcount = 0;
> +       while(!flock($fh, $flag) && $failedcount < 30) {
> +               $failedcount++;
> +               sleep 1;
> +       }
> +       die "Could not lock file after 30 tries: $!\n" if
> ($failedcount == 30);
>           return 1;
>       }
>       else {
> 
> I've been using this version for a couple of weeks on our
> development 
> server and have yet to see it actually hit 30 failures.
> 
> Thanks much to Frederic for his investigate and initial patch.

Thanks for the reply, 

I patched the /interchange/lib/Vend/Util.pm and started up the service.. and 
still receive..
"- [14/April/2003:15:21:13 -0500] db 
/cgi-bin/db/scan/st=db/co=yes/sf=category/se=Informal 
Seating/sf=prod_group/se=Reception Area.html Runtime error: Could not lock 
file: Interrupted system call"

Do I need to patch it elsewhere? Where can I check out other work done 
regarding this issue?

Thanks, 
GeoffS

-- 
Geoff Sternecker
monkey with a keyboard @ http://www.rdgi.com