Author: arkurth
Date: Tue Jun 4 18:50:47 2013
New Revision: 1489559
URL: http://svn.apache.org/r1489559
Log:
Changed call to lsof to use the full path: /usr/sbin/lsof. This directory
isn't in $PATH on some OS's.
Modified:
vcl/trunk/managementnode/lib/VCL/Module/Semaphore.pm
Modified: vcl/trunk/managementnode/lib/VCL/Module/Semaphore.pm
URL:
http://svn.apache.org/viewvc/vcl/trunk/managementnode/lib/VCL/Module/Semaphore.pm?rev=1489559&r1=1489558&r2=1489559&view=diff
==============================================================================
--- vcl/trunk/managementnode/lib/VCL/Module/Semaphore.pm (original)
+++ vcl/trunk/managementnode/lib/VCL/Module/Semaphore.pm Tue Jun 4 18:50:47
2013
@@ -195,7 +195,7 @@ sub open_lockfile {
}
# Run lsof to determine which process is locking the file
- my ($exit_status, $output) = run_command("lsof -Fp $file_path", 1);
+ my ($exit_status, $output) = run_command("/usr/sbin/lsof -Fp
$file_path", 1);
if (!defined($output)) {
notify($ERRORS{'WARNING'}, 0, "failed to run losf command to
determine which process is locking the file: $file_path");
return;