[Bug 290357] rc.subr: changed sleep leads to very long shutdown times
Date: Tue, 28 Oct 2025 11:57:54 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290357
--- Comment #3 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:
URL:
https://cgit.FreeBSD.org/src/commit/?id=22cff1f3e9d82b48aad440c52f883bfd4995359c
commit 22cff1f3e9d82b48aad440c52f883bfd4995359c
Author: Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2025-10-28 11:57:03 +0000
Commit: Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2025-10-28 11:57:16 +0000
rc.subr: Fix slow shutdown issue
Instead of sleeping after pwait returns, use its new -p option to
obtain the list of processes that still have not terminated.
MFC after: 3 days
PR: 290357
Fixes: 5953e7c98427 ("rc.subr: Move the sleep in wait_for_pids")
Reviewed by: 0mp, markj
Differential Revision: https://reviews.freebsd.org/D53294
libexec/rc/rc.subr | 29 ++++++++---------------------
1 file changed, 8 insertions(+), 21 deletions(-)
--
You are receiving this mail because:
You are the assignee for the bug.