mirror of
https://github.com/opnsense/src.git
synced 2026-06-13 18:50:31 -04:00
shutdown: tweak kproc/kthread shutdown check
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. Reviewed by: markj MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D42683
This commit is contained in:
parent
9e0b0f5de6
commit
960612a19f
1 changed files with 2 additions and 2 deletions
|
|
@ -1011,7 +1011,7 @@ kproc_shutdown(void *arg, int howto)
|
|||
struct proc *p;
|
||||
int error;
|
||||
|
||||
if (KERNEL_PANICKED())
|
||||
if (SCHEDULER_STOPPED())
|
||||
return;
|
||||
|
||||
p = (struct proc *)arg;
|
||||
|
|
@ -1031,7 +1031,7 @@ kthread_shutdown(void *arg, int howto)
|
|||
struct thread *td;
|
||||
int error;
|
||||
|
||||
if (KERNEL_PANICKED())
|
||||
if (SCHEDULER_STOPPED())
|
||||
return;
|
||||
|
||||
td = (struct thread *)arg;
|
||||
|
|
|
|||
Loading…
Reference in a new issue