lkml.org 
[lkml]   [2004]   [Jun]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: clone() <-> getpid() bug in 2.6?
    On Sat, 5 Jun 2004, Linus Torvalds wrote:

    >
    >
    > On Sat, 5 Jun 2004, Davide Libenzi wrote:
    > >
    > > It is likely used by pthread_self(), that is pretty much performance
    > > sensitive. I'd agree with Ulrich here.
    >
    > It _can't_ be used for pthread_self(), since the pid is the _same_ across
    > all threads in a pthread environment.

    Yeah, I just checked. It is not for that. And like Robert was saying, it'd
    have been a gettid().



    - Davide

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 14:03    [W:0.019 / U:30.260 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site