diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-08-06 13:51:06 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-08-06 13:51:06 +0000 |
commit | 0d5ff4978729e5f1544b76dbe9cc75019c9ee384 (patch) | |
tree | 1d66662e2236afef2ea4497f651e3309a116255c | |
parent | 4718aa2d8261b65827ff61eaef4a996df0cc30b0 (diff) | |
download | mgaonline-0d5ff4978729e5f1544b76dbe9cc75019c9ee384.tar mgaonline-0d5ff4978729e5f1544b76dbe9cc75019c9ee384.tar.gz mgaonline-0d5ff4978729e5f1544b76dbe9cc75019c9ee384.tar.bz2 mgaonline-0d5ff4978729e5f1544b76dbe9cc75019c9ee384.tar.xz mgaonline-0d5ff4978729e5f1544b76dbe9cc75019c9ee384.zip |
simplify
-rwxr-xr-x | mdkapplet | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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"; } } |