[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] cluster/fence/agents/scsi fence_scsi.pl



CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	rohara sourceware org	2006-07-06 16:23:41

Modified files:
	fence/agents/scsi: fence_scsi.pl 

Log message:
	Added extra output when verbose option is given.
	Fixed code to close stdin, stdout, stderr after open3 call.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/scsi/fence_scsi.pl.diff?cvsroot=cluster&r1=1.1&r2=1.2

--- cluster/fence/agents/scsi/fence_scsi.pl	2006/06/29 21:36:09	1.1
+++ cluster/fence/agents/scsi/fence_scsi.pl	2006/07/06 16:23:40	1.2
@@ -141,6 +141,10 @@
 	    push @volumes, $device;
 	}
     }
+
+    close($in);
+    close($out);
+    close($err);
 }
 
 sub check_sg_persist
@@ -153,6 +157,12 @@
 
     die "Unable to execute sg_persist.\n" if ($?>>8);
 
+    while (<$out>)
+    {
+	chomp;
+	print "OUT: $_\n" if $opt_v;
+    }
+
     close($in);
     close($out);
     close($err);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]