From: Daan De Meyer Date: Thu, 22 Aug 2024 11:43:33 +0000 (+0200) Subject: Don't run run_clean() in a forked child anymore X-Git-Tag: v25~348^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0917da6758c0fedc19dd520b88a60241323ae06c;p=thirdparty%2Fmkosi.git Don't run run_clean() in a forked child anymore No need anymore so let's not fork unnecessarily. --- diff --git a/mkosi/__init__.py b/mkosi/__init__.py index 5907fb60c..68917f5d2 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -4756,7 +4756,7 @@ def run_verb(args: Args, images: Sequence[Config], *, resources: Path) -> None: ((args.verb == Verb.build or args.force > 0) and not have_cache(tools)) or needs_clean(args, tools, force=2) ): - fork_and_wait(run_clean, args, tools, resources=resources) + run_clean(args, tools, resources=resources) else: tools = None @@ -4764,7 +4764,7 @@ def run_verb(args: Args, images: Sequence[Config], *, resources: Path) -> None: # image build could end up deleting the output generated by an earlier image build. for config in images: if needs_clean(args, config) or args.wipe_build_dir: - fork_and_wait(run_clean, args, config, resources=resources) + run_clean(args, config, resources=resources) if args.verb == Verb.clean: return