[lkml]   [2000]   [Feb]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: PID Wrap <strangeness>

    On Tue, Feb 22, 2000 at 05:31:51PM -0500, Richard B. Johnson wrote:
    > On Linux 2.3.41 (haven't checked others) when the PID wraps past
    > 32,767 the next PID is 300. It is not the next-available low one.
    > Does anybody know why?

    For speed, since a lot of pids lower than 300 are used by daemons,
    there's no need to check them. This will speedup the get_pid
    function after a wrap.


    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:56    [W:0.020 / U:2.424 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site