Index: /trunk/PS-IPP-Config/lib/PS/IPP/Config.pm
===================================================================
--- /trunk/PS-IPP-Config/lib/PS/IPP/Config.pm	(revision 18556)
+++ /trunk/PS-IPP-Config/lib/PS/IPP/Config.pm	(revision 18557)
@@ -1,5 +1,5 @@
 # Copyright (c) 2006  Paul Price, Joshua Hoblitt
 #
-# $Id: Config.pm,v 1.90 2008-06-12 01:35:08 eugene Exp $
+# $Id: Config.pm,v 1.91 2008-07-15 20:27:31 bills Exp $
 
 package PS::IPP::Config;
@@ -583,5 +583,18 @@
     die "cannot resolve $name" unless $filename;
 
-    open STDOUT, ">>$filename" or die "failed to redirect stdout to $filename";
+    if (! open(STDOUT, ">>$filename") ) {
+        # try to work around the 'nfs glitch' by waiting and retrying the open a couple of times
+        print STDERR "failed to redirect stdout to $filename re-trying\n";
+        my $max_tries = 10;
+        my $try = 2;
+        while (! open STDOUT, ">>$filename" ) {
+            if ($try == $max_tries) {
+                die "failed to redirect stdout to $filename after trying $max_tries times";
+            }
+            sleep 5;
+            $try++;
+        }
+        print STDERR "   redirect stdout to $filename succeded on try $try\n";
+    }
     open STDERR, ">>$filename" or die "failed to redirect stderr to $filename";
 }
