diff --git a/clusterd/clusterd b/clusterd/clusterd index d5d53c2..3b81103 100755 --- a/clusterd/clusterd +++ b/clusterd/clusterd @@ -1211,7 +1211,10 @@ sub clp_rx_LSOF { defined $pid or die "$!\n"; unless ($pid) { $socket->blocking(1); - open P,'timeout -k 32s 30s lsof -n|' or die "$!\n"; + # -n inhibits the conversion of network numbers to host names for network files. + # -b causes lsof to avoid kernel functions that might block - lstat(2), readlink(2), and stat(2). + # -w disables warning messages. + open P,'timeout -k 92s 90s lsof -n -b -w|' or die "$!\n"; while (

) { next if defined $pattern && index($_,$pattern)<0; $socket->send(pack('n',length($_)).$_,0);