NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/37987: sys__sched_getparam doesn't work if LWP with lid=1 exited.
> >Description:
>
> sys__sched_getparam() does:
>
> /* If not specified, use the first LWP */
> lid = SCARG(uap, lid) == 0 ? 1 : SCARG(uap, lid);
>
> it doesn't work if the lwp with lid=1 exited.
>
> >How-To-Repeat:
> code inspection.
> >Fix:
> use proc_representative_lwp?
Yes, it is not a good solution. But if I remember correctly, we are trying
to avoid proc_representative_lwp(), no? I may be confused.
LIST_FIRST(&p->p_lwps) was another solution I was thinking about.
--
Best regards,
Mindaugas
www.NetBSD.org
Home |
Main Index |
Thread Index |
Old Index