summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--urpm/msg.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm/msg.pm b/urpm/msg.pm
index bf4b3e54..c99fabf3 100644
--- a/urpm/msg.pm
+++ b/urpm/msg.pm
@@ -51,7 +51,7 @@ eval {
Sys::Syslog->import();
(my $tool = $0) =~ s!.*/!!;
openlog($tool, '', 'user');
- END { closelog() }
+ END { defined &closelog and closelog() }
};
sub sys_log { defined &syslog and syslog("info", @_) }