diff options
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | Rpmdrake/pkg.pm | 4 |
2 files changed, 5 insertions, 1 deletions
@@ -1,5 +1,7 @@ - reimplement priority upgrade support through urpmi-5.9's infrastructure +- when restarting after priority upgrade, free memory used by previous + rpmdrake instance Version 4.4.2.3 - 6 March 2008, Thierry Vignaud diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm index d043281c..9c24d96c 100644 --- a/Rpmdrake/pkg.pm +++ b/Rpmdrake/pkg.pm @@ -793,11 +793,13 @@ you may now inspect some in order to take actions:"), #- restart rpmdrake if needed, keep command line for that. if ($restart_itself && !$exit_code) { log::explanations("restarting rpmdrake"); + #- it seems to work correctly with exec instead of system, provided we stop timers #- added --previous-priority-upgrade to allow checking if yet if #- priority-upgrade list has changed. and make sure we don't uselessly restart my @argv = ('--previous-priority-upgrade=' . $urpm->{options}{'priority-upgrade'}, grep { !/^--no-priority-upgrade$|--previous-priority-upgrade=/ } @Rpmdrake::init::ARGV_copy); - run_program::raw({ detach => 1 }, $0, @argv); + alarm(0); + exec($0, @argv); exit(0); } |