NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/37987: sys__sched_getparam doesn't work if LWP with lid=1 exited.



>Number:         37987
>Category:       kern
>Synopsis:       sys__sched_getparam doesn't work if LWP with lid=1 exited.
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 09 17:25:00 +0000 2008
>Originator:     YAMAMOTO Takashi <yamt%mwd.biglobe.ne.jp@localhost>
>Release:        NetBSD 4.99.54
>Organization:
        
>Environment:
>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?

>Unformatted:
        
        



Home | Main Index | Thread Index | Old Index