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