diff options
Diffstat (limited to 'mdkonline.pm')
-rw-r--r-- | mdkonline.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mdkonline.pm b/mdkonline.pm index 38754d3b..47a2ebed 100644 --- a/mdkonline.pm +++ b/mdkonline.pm @@ -375,8 +375,8 @@ sub is_running { my ($name) = @_; my $found; foreach (`ps -o '%P %p %c' -u $ENV{USER}`) { - my ($_ppid, $pid, $n) = /^\s*(\d+)\s+(\d+)\s+(.*)/; - if ($pid != $$ && $n eq $name) { + my ($ppid, $pid, $n) = /^\s*(\d+)\s+(\d+)\s+(.*)/; + if ($ppid != pid != $$ && $n eq $name) { $found = $pid; last; } |