On Tue, Jun 05, 2012 at 11:20:35AM +0200, Martin Husemann wrote: > On Mon, Jun 04, 2012 at 11:16:45PM -0700, Matt Thomas wrote: > > The latter is my preference. How many processes ever have lid 1 exit early? > > Yes, do not count lid 1 and don't have it decrement the count on exit.
some processes (ie. emul_linux ones) do not have a lid 1, so this won't work. can't you just not change the count for the last lwp in a process? -Chuck