summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-03-12 14:16:03 +0000
committerThierry Vignaud <tv@mandriva.org>2007-03-12 14:16:03 +0000
commit2fd7a4887dd8deec09954f6e0c98c45b5f400586 (patch)
tree3ae6df711d31fd60a3cd87ccb9da25559f235757
parentf3840e7ac12c0b6bd86b09e937d3bff3f46a0d0c (diff)
downloadmgaonline-2fd7a4887dd8deec09954f6e0c98c45b5f400586.tar
mgaonline-2fd7a4887dd8deec09954f6e0c98c45b5f400586.tar.gz
mgaonline-2fd7a4887dd8deec09954f6e0c98c45b5f400586.tar.bz2
mgaonline-2fd7a4887dd8deec09954f6e0c98c45b5f400586.tar.xz
mgaonline-2fd7a4887dd8deec09954f6e0c98c45b5f400586.zip
(is_running) fix detecting running applet processes
-rw-r--r--mdkonline.pm4
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;
}