summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2004-08-25 14:30:16 +0000
committerOlivier Blin <oblin@mandriva.org>2004-08-25 14:30:16 +0000
commit28ad35ddc10984940235a15899a36d2caaa48c12 (patch)
tree4a05944f406c3193e0d0d07ef98049824d080ea3 /perl-install/standalone
parentddaf71f5ce83fc7277cc5dfb9763dddd45d826fd (diff)
downloaddrakx-backup-do-not-use-28ad35ddc10984940235a15899a36d2caaa48c12.tar
drakx-backup-do-not-use-28ad35ddc10984940235a15899a36d2caaa48c12.tar.gz
drakx-backup-do-not-use-28ad35ddc10984940235a15899a36d2caaa48c12.tar.bz2
drakx-backup-do-not-use-28ad35ddc10984940235a15899a36d2caaa48c12.tar.xz
drakx-backup-do-not-use-28ad35ddc10984940235a15899a36d2caaa48c12.zip
avoid grep to grep itself, use perl
Diffstat (limited to 'perl-install/standalone')
-rw-r--r--perl-install/standalone/net_applet2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/standalone/net_applet b/perl-install/standalone/net_applet
index 4ebedf3ff..330bd84bb 100644
--- a/perl-install/standalone/net_applet
+++ b/perl-install/standalone/net_applet
@@ -18,7 +18,7 @@ my $raisedwindow = 0;
my $onstartupfile = "$ENV{HOME}/.net_applet";
add_icon_path("/usr/share/libDrakX/pixmaps/");
# Allow multiple instances, but only one per user:
-my @pids = `ps -u $ENV{USER} | grep net_applet`;
+my @pids = `ps -u $ENV{USER}` =~ /net_applet/;
@pids > 1 and die "net_applet already running\n";
my $prog_name = "/usr/bin/net_applet";
my $current_md5 = md5file($prog_name);