Page MenuHomeFreeBSD

shutdown: tweak kproc/kthread shutdown check
ClosedPublic

Authored by mhorne on Nov 20 2023, 5:59 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 7, 6:46 PM
Unknown Object (File)
Thu, Nov 7, 12:24 AM
Unknown Object (File)
Tue, Nov 5, 11:41 AM
Unknown Object (File)
Thu, Oct 17, 2:41 AM
Unknown Object (File)
Oct 12 2024, 7:46 AM
Unknown Object (File)
Oct 11 2024, 12:27 AM
Unknown Object (File)
Oct 10 2024, 6:00 AM
Unknown Object (File)
Oct 8 2024, 2:41 PM
Subscribers

Details

Summary

This is to handle the case where the system has not panicked but the
debugger is active, where we still can't wait for thread termination.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sys/kern/kern_shutdown.c
1017–1025

To be clear, the impact of the change is that we don't execute this block and don't print anything to console. The underlying call to _sleep() returns immediately with no error when the scheduler is stopped. So it is mostly a change for "correctness".

This revision is now accepted and ready to land.Nov 23 2023, 2:47 PM
This revision was automatically updated to reflect the committed changes.