summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-08-06 13:51:06 +0000
committerThierry Vignaud <tv@mandriva.org>2007-08-06 13:51:06 +0000
commit0d5ff4978729e5f1544b76dbe9cc75019c9ee384 (patch)
tree1d66662e2236afef2ea4497f651e3309a116255c /mdkapplet
parent4718aa2d8261b65827ff61eaef4a996df0cc30b0 (diff)
downloadmgaonline-0d5ff4978729e5f1544b76dbe9cc75019c9ee384.tar
mgaonline-0d5ff4978729e5f1544b76dbe9cc75019c9ee384.tar.gz
mgaonline-0d5ff4978729e5f1544b76dbe9cc75019c9ee384.tar.bz2
mgaonline-0d5ff4978729e5f1544b76dbe9cc75019c9ee384.tar.xz
mgaonline-0d5ff4978729e5f1544b76dbe9cc75019c9ee384.zip
simplify
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet3
1 files changed, 1 insertions, 2 deletions
diff --git a/mdkapplet b/mdkapplet
index 5de0272f..f2a7aa61 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -48,8 +48,7 @@ my $action = POSIX::SigAction->new('restart_applet',
POSIX::sigaction(&POSIX::SIGHUP, $action);
if (!find { $_ eq '--auto-update' } @ARGV) {
- my $pid = mdkonline::is_running('mdkapplet');
- if ($pid) {
+ if (my $pid = mdkonline::is_running('mdkapplet')) {
die "mdkapplet already running ($pid)\n";
}
}