At 4:14 AM +0200 6/20/04, Cyrille Lefevre wrote:

is it normal that the selected process is the last forked thread and not the thread owner (father) ?

I committed the changes, so people can try this if they want. Example:

(48)  ps -HO lwp,nlwp
  PID    LWP NLWP  TT  STAT      TIME COMMAND
 1870   1870    1  ??  SL     0:00.13 sshd: [EMAIL PROTECTED] (sshd)
 1871   1871    1  p3  SLs    0:00.09 -bash (bash)
 2535 100002    6  p3  SL+    0:00.00 ./cyr-thread
 2535 100001    6  p3  SL+    0:00.00 ./cyr-thread
 2535 100004    6  p3  SL+    0:00.00 ./cyr-thread
 2535   2535    6  p3  SL+    0:00.00 ./cyr-thread
 2535 100000    6  p3  SL+    0:00.00 ./cyr-thread
 2535 100003    6  p3  SL+    0:00.00 ./cyr-thread

(49)  ps -O lwp,nlwp
  PID    LWP NLWP  TT  STAT      TIME COMMAND
 1870   1870    1  ??  S      0:00.13 sshd: [EMAIL PROTECTED] (sshd)
 1871   1871    1  p3  Ss     0:00.09 -bash (bash)
 2535 100004    6  p3  S+     0:00.00 ./cyr-thread

When the -H is not requested, why does process 2535 show up as
thread-ID #100004 instead of #2535?  Is that something that we
need to change when copying info into kproc_info ?  Or is that
perfectly reasonable?  I have not worked with threaded apps,
so I am not sure what people would be expecting here.

--
Garance Alistair Drosehn            =   [EMAIL PROTECTED]
Senior Systems Programmer           or  [EMAIL PROTECTED]
Rensselaer Polytechnic Institute    or  [EMAIL PROTECTED]
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to