Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/usr.bin/systat Pull up revision 1.6 (requested by mrg):
details: https://anonhg.NetBSD.org/src/rev/1e90ddc68e4a
branches: netbsd-1-4
changeset: 469578:1e90ddc68e4a
user: he <he%NetBSD.org@localhost>
date: Tue Oct 12 19:57:40 1999 +0000
description:
Pull up revision 1.6 (requested by mrg):
Fix "dty" vs "tty" problems that have existed since "dty"s were
invented sometime before 1.4 was released.
diffstat:
usr.bin/systat/ps.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r aa3a0a543818 -r 1e90ddc68e4a usr.bin/systat/ps.c
--- a/usr.bin/systat/ps.c Tue Oct 12 19:56:08 1999 +0000
+++ b/usr.bin/systat/ps.c Tue Oct 12 19:57:40 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ps.c,v 1.1 1999/02/21 21:48:07 jwise Exp $ */
+/* $NetBSD: ps.c,v 1.1.2.1 1999/10/12 19:57:40 he Exp $ */
/*-
* Copyright (c) 1999
@@ -219,7 +219,8 @@
if (e->e_tdev == NODEV || (ttyname = devname(e->e_tdev, S_IFCHR)) == NULL)
strcpy(ttystr, "??");
else {
- if (strncmp(ttyname, "tty", 3) == 0)
+ if (strncmp(ttyname, "tty", 3) == 0 ||
+ strncmp(ttyname, "dty", 3) == 0)
ttyname += 3;
sprintf(ttystr, "%s%c", ttyname, e->e_flag & EPROC_CTTY ? ' ' : '-');
}
Home |
Main Index |
Thread Index |
Old Index