Skip to content

Commit

Permalink
Merge 47ad6bb into 76753bf
Browse files Browse the repository at this point in the history
  • Loading branch information
preaction committed Jun 6, 2019
2 parents 76753bf + 47ad6bb commit a7bb544
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Selenium/CanStartBinary.pm
Original file line number Diff line number Diff line change
Expand Up @@ -423,8 +423,7 @@ sub shutdown_unix_binary {
my ($self) = @_;
if (!IS_WIN) {
my $cmd = "lsof -t -i :".$self->port();
my $pid = `$cmd`;
chomp $pid;
my ( $pid ) = grep { $_ && $_ ne $$ } split /\s+/, scalar `$cmd`;
if ($pid) {
print "Killing Driver PID $pid listening on port ".$self->port."...\n";
eval { kill 'KILL', $pid };
Expand Down

0 comments on commit a7bb544

Please sign in to comment.