summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-08-03 14:06:37 +0000
committerThierry Vignaud <tv@mandriva.org>2007-08-03 14:06:37 +0000
commit841729490f60d3929d8d522964711f861d46f04f (patch)
tree5e03ddbb59f1b6f9d488c7f7d5c21d927e56c409
parent68ac182154aae2675353520413b08aec2115f1c4 (diff)
downloadmgaonline-841729490f60d3929d8d522964711f861d46f04f.tar
mgaonline-841729490f60d3929d8d522964711f861d46f04f.tar.gz
mgaonline-841729490f60d3929d8d522964711f861d46f04f.tar.bz2
mgaonline-841729490f60d3929d8d522964711f861d46f04f.tar.xz
mgaonline-841729490f60d3929d8d522964711f861d46f04f.zip
mdkapplet already running should not fire drakbug
-rwxr-xr-xmdkapplet5
1 files changed, 4 insertions, 1 deletions
diff --git a/mdkapplet b/mdkapplet
index df4cc5de..6a49aa41 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -54,7 +54,10 @@ POSIX::sigaction(&POSIX::SIGHUP, $action);
if (!find { $_ eq '--auto-update' } @ARGV) {
my $pid = mdkonline::is_running('mdkapplet');
- $pid and die "mdkapplet already running ($pid)\n";
+ if ($pid) {
+ warn "mdkapplet already running ($pid)\n";
+ exit(1);
+ }
}
my $in = interactive->vnew('');