summaryrefslogtreecommitdiffstats
path: root/mdkonline.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-03-12 15:58:07 +0000
committerThierry Vignaud <tv@mandriva.org>2007-03-12 15:58:07 +0000
commitb82d60ba4664dbea66fa742728f9f7e1ad574094 (patch)
tree24d0235f0dc70b0383e05e9f8546d822e5553e0e /mdkonline.pm
parent2e8d85349293cc8ed75b1d65b4b9d29d67ed2b43 (diff)
downloadmgaonline-b82d60ba4664dbea66fa742728f9f7e1ad574094.tar
mgaonline-b82d60ba4664dbea66fa742728f9f7e1ad574094.tar.gz
mgaonline-b82d60ba4664dbea66fa742728f9f7e1ad574094.tar.bz2
mgaonline-b82d60ba4664dbea66fa742728f9f7e1ad574094.tar.xz
mgaonline-b82d60ba4664dbea66fa742728f9f7e1ad574094.zip
(is_running) typo fix
Diffstat (limited to 'mdkonline.pm')
-rw-r--r--mdkonline.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdkonline.pm b/mdkonline.pm
index 47a2ebed..f31a8c70 100644
--- a/mdkonline.pm
+++ b/mdkonline.pm
@@ -376,7 +376,7 @@ sub is_running {
my $found;
foreach (`ps -o '%P %p %c' -u $ENV{USER}`) {
my ($ppid, $pid, $n) = /^\s*(\d+)\s+(\d+)\s+(.*)/;
- if ($ppid != pid != $$ && $n eq $name) {
+ if ($ppid != 1 && $pid != $$ && $n eq $name) {
$found = $pid;
last;
}