summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD/AddDelete.pm
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2009-12-21 13:24:58 +0000
committerMarc Espie <espie@cvs.openbsd.org>2009-12-21 13:24:58 +0000
commitdfdef2d253ff46286f705e5112b55967467452bf (patch)
treec6ef28ddd15e68a157fc8221e4132dfef91c9006 /usr.sbin/pkg_add/OpenBSD/AddDelete.pm
parentd2de03fc1b9f519da27fb340458b69802f9f0dc6 (diff)
if we're not in a "pretend" mode, synchronization operations on vstat occur
after the files have been committed to the file system, so we can forget about them... I don't know where I lost that change, restores pkg_add memory usage to very small values...
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/AddDelete.pm')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/AddDelete.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/AddDelete.pm b/usr.sbin/pkg_add/OpenBSD/AddDelete.pm
index 90844010398..6b68c467a38 100644
--- a/usr.sbin/pkg_add/OpenBSD/AddDelete.pm
+++ b/usr.sbin/pkg_add/OpenBSD/AddDelete.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: AddDelete.pm,v 1.10 2009/12/21 10:38:58 espie Exp $
+# $OpenBSD: AddDelete.pm,v 1.11 2009/12/21 13:24:57 espie Exp $
#
# Copyright (c) 2007-2009 Marc Espie <espie@openbsd.org>
#
@@ -47,6 +47,7 @@ sub handle_options
$opt_n = 1;
}
$state->{not} = $opt_n;
+ $state->vstat->{not} = $opt_n;
# XXX RequiredBy
$main::not = $opt_n;
$state->{defines} = \%defines;
@@ -181,8 +182,8 @@ sub tally
sub synchronize
{
- shift;
- &OpenBSD::Vstat::synchronize;
+ my $self = shift;
+ OpenBSD::Vstat::synchronize($self->{not});
}
package OpenBSD::Log;