Skip to content

Commit

Permalink
Merge pull request #14998 from mlschroe/master
Browse files Browse the repository at this point in the history
[backend] BSServerEvents: remove superfluous newline in request_note
  • Loading branch information
mlschroe committed Oct 4, 2023
2 parents ffe5a31 + d936257 commit c04c874
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/backend/BSServerEvents.pm
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ sub request_done {
sub request_note {
my ($ev, $msg) = @_;
my $info = $ev->{'request'} ? BSServer::request_infostr($ev->{'request'}) : $ev->{'peer'};
print "$msg for $info\n";
print "$msg for $info";
}

sub replstream_timeout {
Expand Down
3 changes: 2 additions & 1 deletion src/backend/bs_warden
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,15 @@ BSUtil::drop_privs_to($BSConfig::bsuser, $BSConfig::bsgroup);
$| = 1;
$SIG{'PIPE'} = 'IGNORE';
BSUtil::restartexit($options, 'warden', "$rundir/$runname");
BSUtil::printlog("starting build service worker warden");

# get lock
mkdir_p($rundir);
open(RUNLOCK, '>>', "$rundir/$runname.lock") || die("$rundir/$runname.lock: $!\n");
flock(RUNLOCK, LOCK_EX | LOCK_NB) || die("worker warden is already running!\n");
utime undef, undef, "$rundir/$runname.lock";

BSUtil::printlog("starting build service worker warden");

my %building;
my $nextorphan = 0;
my $xcheck = 0;
Expand Down

0 comments on commit c04c874

Please sign in to comment.