The syslog server, and its port, is used for things that happen in
this job, but the syslog server is torn down and a new one started,
when the host is reused.
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
push @cl, "priority=$debconf_priority";
push @cl, "rescue/enable=true" if $xopts{RescueMode};
- if ($r{syslog_server}) {
- $r{syslog_server} =~ m/:(\d+)$/ or die "$r{syslog_server} ?";
- push @cl, "log_host=$`", "log_port=$1";
- }
+ effects_gone_before_share_reuse(sub {
+ if ($r{syslog_server}) {
+ $r{syslog_server} =~ m/:(\d+)$/ or die "$r{syslog_server} ?";
+ push @cl, "log_host=$`", "log_port=$1";
+ }
+ });
return @cl;
}
gitcache_setup
@accessible_runvar_pats sharing_for_build
+ effects_gone_before_share_reuse
);
%EXPORT_TAGS = ( );
sub sharing_for_build () { @accessible_runvar_pats = qw(*); };
+sub effects_gone_before_share_reuse ($) {
+ local @accessible_runvar_pats = qw(*);
+ $_[0]();
+}
+
sub runvar_access_restrict () {
# restricts runvars to those in @accessible_runvar_pats
return if "@accessible_runvar_pats" eq "*";