From 1db9043c8a9e908e57b74550657bf63a6aaea1df Mon Sep 17 00:00:00 2001 From: Aaron Andersen Date: Tue, 23 Jun 2026 18:19:51 -0400 Subject: [PATCH] bootchartd: fix wait_boot spin when EXIT_PROC is empty With no EXIT_PROC configured there is no process to watch for, so wait_boot() never completes. Return early when EXIT_PROC is empty and let collection be stopped explicitly with `bootchartd stop`. --- bootchartd.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bootchartd.in b/bootchartd.in index 3030ac2..a0c8ea8 100755 --- a/bootchartd.in +++ b/bootchartd.in @@ -104,6 +104,11 @@ wait_boot() { trap "" HUP + # With no EXIT_PROC configured there is nothing to watch + # for. Bail out and let collection be stopped externally + # instead. + [ -n "$EXIT_PROC" ] || return + # Wait for /proc first - without it we have issues while [ ! -e /proc/cmdline ]; do $USLEEP 50000