summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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('');