[prev in list] [next in list] [prev in thread] [next in thread] 

List:       helix-server-cvs
Subject:    [Server-cvs] common/analysis/extra updatelink.pl,1.5,1.6
From:       dcollins () helixcommunity ! org
Date:       2012-05-29 20:41:00
[Download RAW message or body]

Update of /cvsroot/server/common/analysis/extra
In directory cvs01.internal.helixcommunity.org:/tmp/cvs-serv14992

Modified Files:
	updatelink.pl 
Log Message:
cvs-sync of a bug fix from a while ago


Index: updatelink.pl
===================================================================
RCS file: /cvsroot/server/common/analysis/extra/updatelink.pl,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- updatelink.pl	17 Nov 2011 03:43:50 -0000	1.5
+++ updatelink.pl	29 May 2012 20:40:53 -0000	1.6
@@ -191,12 +191,14 @@
 
 ServGraph::ReportStatus("Monitoring '$szWorkDir/$szTopLink/$szLogPattern'...\n");
 
+unlink $szLink;
+
 $szCurrentDir = ''; #undefined at first
 while (1)
 {
     $szNewDir = GetCurrentDir();
 
-    if ($szNewDir && (($szNewDir ne $szCurrentDir) || -l $szLink))
+    if ($szNewDir && (($szNewDir ne $szCurrentDir) || ! -l $szLink))
     {
         $szCurrentDir = $szNewDir;
         RecreateLogsLink();


_______________________________________________
Server-cvs mailing list
Server-cvs@helixcommunity.org
http://lists.helixcommunity.org/mailman/listinfo/server-cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic