so the job itself should also not continue if something broke

This commit is contained in:
espie 2019-11-08 17:53:24 +00:00
parent dde84cbc35
commit 97cbe7d28e

View File

@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
# $OpenBSD: Init.pm,v 1.44 2019/11/08 17:47:01 espie Exp $
# $OpenBSD: Init.pm,v 1.45 2019/11/08 17:53:24 espie Exp $
#
# Copyright (c) 2010-2013 Marc Espie <espie@openbsd.org>
#
@ -84,6 +84,10 @@ sub finalize
{
my ($self, $core) = @_;
if ($core->{status} != 0) {
return 0;
}
my $prop = $core->prop;
$prop->{jobs} //= 1;
$prop->{parallel2} //= $prop->{parallel};