]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Several cleanups to tty_info(), better known as Ctrl-T.
authorEd Schouten <ed@FreeBSD.org>
Sun, 17 May 2009 12:30:25 +0000 (12:30 +0000)
committerEd Schouten <ed@FreeBSD.org>
Sun, 17 May 2009 12:30:25 +0000 (12:30 +0000)
commitdd970f41f746043123b283651b574eb70c8bce14
tree028a49451b8440107a953504081e23ba7d8cc522
parent964bb4d3d4589f2b9174707626dd3de4da905c2d
Several cleanups to tty_info(), better known as Ctrl-T.

- Only pick up PROC_LOCK once, which means we can drop the PGRP_LOCK
  right after picking up PROC_LOCK for the first time.

- Print the process real time, making it consistent with tools like
  time(1).

- Use `p' and `td' to reference the process/thread we are going to
  print. Only use pick-variables inside the loops. We already did this
  for the threads, but not the processes.
sys/kern/tty_info.c