Re: [FreeBSD 5.3-RC2] Processes STILL hanging in unkillable state

From: Boris Kovalenko <boris_at_ntmk.ru>
Date: Fri, 05 Nov 2004 10:02:21 +0500
Hello!

    Applied, compiled and rebooted. Will report You ASAP.

David Xu wrote:

> Please try following patch:
>
> Index: kern_thread.c
> ===================================================================
> RCS file: /home/ncvs/src/sys/kern/kern_thread.c,v
> retrieving revision 1.205
> diff -u -r1.205 kern_thread.c
> --- kern_thread.c    4 Nov 2004 22:13:16 -0000    1.205
> +++ kern_thread.c    5 Nov 2004 04:23:24 -0000
> _at__at_ -832,11 +832,10 _at__at_
>                          continue;
>                      /*
>                       * maybe other inhibitted states too?
> -                     * XXXKSE Is it totally safe to
> -                     * suspend a non-interruptable thread?
>                       */
> -                    if (td2->td_inhibitors &
> -                        (TDI_SLEEPING | TDI_SWAPPED))
> +                    if ((td2->td_flags & TDF_SINTR) &&
> +                        (td2->td_inhibitors &
> +                        (TDI_SLEEPING | TDI_SWAPPED)))
>                          thread_suspend_one(td2);
>                      break;
>                  }
>

Regards,
    Boris
Received on Fri Nov 05 2004 - 04:02:24 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:21 UTC