procps/proc
Simon Tatham 365cb37029 library: find tty device name of process quicker
The procps library attempts to work out the tty of a process
through several methods. For things like /dev/tty123 or
/dev/foo it works fine.

For tty devices that put the minor number in a directory
of the major name this fails. So then we have to fallback
to stating things like the processes STDERR and try again.

Considering a lot of processes sit on ttys such as
/dev/pts/3 this is a lot of wasted time. At the point of
entering driver_name we know "/dev/pts" and we know "3"
we just didn't join them up the right way as this is old
code.

This change now looks for /dev/pts/3 as well. It does it
after looking for /dev/pts3 so the behaviour is the same.

References:
 https://bugs.debian.org/770215

Signed-off-by: Craig Small <csmall@enc.com.au>
2016-07-03 10:08:18 +10:00
..
alloc.c
alloc.h
COPYING
devname.c library: find tty device name of process quicker 2016-07-03 10:08:18 +10:00
devname.h
escape.c
escape.h
libprocps.pc.in
libprocps.sym library: Change linux version 2015-06-19 21:00:46 +10:00
openproc.3
procps-private.h library: Change linux version 2015-06-19 21:00:46 +10:00
procps.h library: Change linux version 2015-06-19 21:00:46 +10:00
pwcache.c
pwcache.h
readproc.3
readproc.c library: make sure that the proc_t is now fixed length 2016-06-07 20:49:30 +10:00
readproc.h library: make sure that the proc_t is now fixed length 2016-06-07 20:49:30 +10:00
readproctab.3
sig.c
sig.h
slab.c bprocps: fix order of operations for %use of slabinfo 2016-04-25 20:20:08 +10:00
slab.h
sysinfo.c - Fixing sysinfo - devices with length exceeding 15 chars are not displayed in vmstat -d 2016-06-30 18:29:50 +02:00
sysinfo.h - Fixing sysinfo - devices with length exceeding 15 chars are not displayed in vmstat -d 2016-06-30 18:29:50 +02:00
version.c miscellaneous: remove some trailing whitespace buildup 2015-06-20 07:46:23 +10:00
version.h library: Change linux version 2015-06-19 21:00:46 +10:00
wchan.c
wchan.h
whattime.c
whattime.h