From 2fd7a4887dd8deec09954f6e0c98c45b5f400586 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 12 Mar 2007 14:16:03 +0000 Subject: (is_running) fix detecting running applet processes --- mdkonline.pm | 4 ++-- 1 file 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; } -- cgit v1.2.1