On Sat, Oct 08, 2005 at 08:46:30AM -0700, Matthew Dillon wrote: > *_comm[] is not the 'official' command name anyway. It's just the > short form used by ps, accounting, and so forth. Lets keep it in the > thread structure.
It doesn't really make sense to keep in the thread structure. The only reason to have a field there are kernel threads and those are quite exceptional any way. They are also a clear minority. What about making the td_comm a simple pointer to the real data? For kernel threads we can allocate it and for real processes it points into struct proc. Joerg
