summaryrefslogtreecommitdiffstats
path: root/urpm/lock.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm/lock.pm')
-rw-r--r--urpm/lock.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm/lock.pm b/urpm/lock.pm
index aeb0aa3b..ea59a983 100644
--- a/urpm/lock.pm
+++ b/urpm/lock.pm
@@ -60,9 +60,9 @@ sub _lock {
if (!flock($lock->{fh}, $mode | $LOCK_NB)) {
if ($b_wait) {
$lock->{info}(N("%s database locked. waiting...", $lock->{db_name}));
- flock($lock->{fh}, $mode) or $lock->{fatal}(1, N("aborting"));
+ flock($lock->{fh}, $mode) or $lock->{fatal}(N("aborting"));
} else {
- $lock->{fatal}(1, N("%s database locked", $lock->{db_name}));
+ $lock->{fatal}(N("%s database locked", $lock->{db_name}));
}
}
$lock->{locked} = 1;