Hello 9fans,

Mr. Yamanashi gave me a nice patch to factotum that is designed for 9grid.
but output of ps is buggy.

cpu% ps
...
arisawa         158    0:00   0:00    9336K Rendez   fossil
arisawa         181    0:00   0:00     252K Pread    rc
[EMAIL PROTECTED] 460 0:00 0:00 128K Awaitom tcp17010 [EMAIL PROTECTED] 461 0:00 0:00 248K Awaitom rc [EMAIL PROTECTED] 462 0:00 0:00 128K Preadom tcp17010 [EMAIL PROTECTED] 476 0:00 0:00 184K Preadom ps
...
cpu%

that comes from buggy /proc/*/status

cpu% cat /proc/460/status
tcp17010 [EMAIL PROTECTED] 0 ....

/man/proc(3) says:
          The read-only status file contains a string with twelve
          fields, each followed by a space.  The fields are:

          -    the process name and user name, each 27 characters left
               justified

          -    the process state, 11 characters left justified (see
               ps(1))

therefore "[EMAIL PROTECTED]" should be
[EMAIL PROTECTED] Awaitom

Kenji Arisawa

Reply via email to