On Monday 03 November 2008 12:26 pm, Jung-uk Kim wrote: > On top of that: > > /* Returning 0 is not allowed. */ > return (curthread->td_tid + 1); > > may actually return 0 because it can be INT_MAX. :-) Sorry, it was just my stupidity. I meant td_tid itself cannot be 0, so + 1 should be removed. :-( Jung-uk Kim