On Thu, Sep 25, 2008 at 11:08 AM, frantisek holop <[EMAIL PROTECTED]> wrote:
> i was always great fan of the status command in the shell.

(Status command?  you mean the status control character?)


>  doing veeeery cool stuff like ping summary without exiting
> (a linux admin friend needed this badly) and just generally
> peeking under the hood what a particular program is up to
> while being to quiet.  i am using aug 26 snapshot and i have
> noticed some pimped up status messages a la:
>
> load: 0.99  cmd: python2.5 18008 [runnable] 4.05u 0.19s 2% 3115k
>  0x8297a400 fdr_wait    15 -c--RW---f 0000 main
>
> or is it just that i have never status'ed a python
> program?  where can i get more documentation about
> what this output means (the 2nd line)?

That's from the pthreads library.  To quote the pthread(3) manpage:
     The SIGINFO signal can be sent to a threaded process to have the library
     show the state of all of its threads.  The information is sent to the
     process' controlling tty and describes each thread's ID, state (see
     Thread states), current priority, flags (see Thread flags), signal mask,
     and name (as set by pthread_set_name_np(3)).  If the environment variable
     PTHREAD_DEBUG is defined additional information is displayed.

For more detail on the meaning of the line, read the source in
/usr/src/lib/libpthread/uthread/uthread_info_openbsd.c


Philip Guenther

Reply via email to