summaryrefslogtreecommitdiffstats
path: root/mdkonline.pm
diff options
context:
space:
mode:
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;
}