Skip to content

Commit

Permalink
clusterd: Do not resolve hostname when doing lsof
Browse files Browse the repository at this point in the history
  • Loading branch information
donald committed Mar 10, 2018
1 parent 3724deb commit 768d7dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clusterd/clusterd
Original file line number Diff line number Diff line change
Expand Up @@ -1204,7 +1204,7 @@ sub clp_rx_LSOF {
defined $pid or die "$!\n";
unless ($pid) {
$socket->blocking(1);
open P,'timeout -k 12s 10s lsof|' or die "$!\n";
open P,'timeout -k 12s 10s lsof -n|' or die "$!\n";
while (<P>) {
next if defined $pattern && index($_,$pattern)<0;
$socket->send(pack('n',length($_)).$_,0);
Expand Down

0 comments on commit 768d7dc

Please sign in to comment.