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)
Sat, Sep 21, 7:01 PM
Unknown Object (File)
Wed, Sep 18, 4:23 AM
Unknown Object (File)
Thu, Sep 12, 12:04 AM
Unknown Object (File)
Thu, Sep 12, 12:04 AM
Unknown Object (File)
Wed, Sep 11, 5:56 AM
Unknown Object (File)
Wed, Sep 4, 4:08 AM
Unknown Object (File)
Aug 31 2024, 4:42 AM
Unknown Object (File)
Aug 14 2024, 4:27 AM
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.