summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/net_applet
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-07-18 10:53:47 +0000
committerOlivier Blin <oblin@mandriva.org>2005-07-18 10:53:47 +0000
commitffbfb60a58bb8ed2913456c91f6c9e696ad55c5f (patch)
treef48497b4d6821517b2d9c16c33ad525d8c8eb3c3 /perl-install/standalone/net_applet
parent4e7caad03229b59c765032b06c1edd5947539639 (diff)
downloaddrakx-ffbfb60a58bb8ed2913456c91f6c9e696ad55c5f.tar
drakx-ffbfb60a58bb8ed2913456c91f6c9e696ad55c5f.tar.gz
drakx-ffbfb60a58bb8ed2913456c91f6c9e696ad55c5f.tar.bz2
drakx-ffbfb60a58bb8ed2913456c91f6c9e696ad55c5f.tar.xz
drakx-ffbfb60a58bb8ed2913456c91f6c9e696ad55c5f.zip
remove useless test
Diffstat (limited to 'perl-install/standalone/net_applet')
-rw-r--r--perl-install/standalone/net_applet3
1 files changed, 1 insertions, 2 deletions
diff --git a/perl-install/standalone/net_applet b/perl-install/standalone/net_applet
index 631872574..6b140c4c2 100644
--- a/perl-install/standalone/net_applet
+++ b/perl-install/standalone/net_applet
@@ -126,8 +126,7 @@ sub is_running {
my ($name) = @_;
any {
my ($ppid, $pid, $n) = /^\s*(\d+)\s+(\d+)\s+(.*)/;
- #- to run ps, perl may create some process with $name as name and 1 as ppid
- $ppid != 1 && $pid != $$ && $n eq $name;
+ $pid != $$ && $n eq $name;
} `ps -o '%P %p %c' -u $ENV{USER}`;
}
sub shouldStart() {