summaryrefslogtreecommitdiffstats
path: root/sys/fs/procfs
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2005-03-15 11:05:11 +0000
committerphk <phk@FreeBSD.org>2005-03-15 11:05:11 +0000
commit3337fd988cd3a53fc586bce9a6e063f598783e69 (patch)
treebb812add5f7aa1ea40bb48d3852821888f5c8790 /sys/fs/procfs
parentbdbc877b804838ff1550c73573706143f523ac3f (diff)
downloadFreeBSD-src-3337fd988cd3a53fc586bce9a6e063f598783e69.zip
FreeBSD-src-3337fd988cd3a53fc586bce9a6e063f598783e69.tar.gz
Don't export major,minor, instead export tty name.
Diffstat (limited to 'sys/fs/procfs')
-rw-r--r--sys/fs/procfs/procfs_status.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/fs/procfs/procfs_status.c b/sys/fs/procfs/procfs_status.c
index 4b480a0..1579037 100644
--- a/sys/fs/procfs/procfs_status.c
+++ b/sys/fs/procfs/procfs_status.c
@@ -81,7 +81,7 @@ procfs_doprocstatus(PFS_FILL_ARGS)
SESS_LOCK(sess);
sid = sess->s_leader ? sess->s_leader->p_pid : 0;
-/* comm pid ppid pgid sid maj,min ctty,sldr start ut st wmsg
+/* comm pid ppid pgid sid tty ctty,sldr start ut st wmsg
euid ruid rgid,egid,groups[1 .. NGROUPS]
*/
@@ -94,9 +94,9 @@ procfs_doprocstatus(PFS_FILL_ARGS)
} while (*++pc);
sbuf_printf(sb, " %d %d %d %d ", pid, ppid, pgid, sid);
if ((p->p_flag & P_CONTROLT) && (tp = sess->s_ttyp))
- sbuf_printf(sb, "%d,%d ", major(tp->t_dev), minor(tp->t_dev));
+ sbuf_printf(sb, "%s ", devtoname(tp->t_dev));
else
- sbuf_printf(sb, "%d,%d ", -1, -1);
+ sbuf_printf(sb, "- ");
sep = "";
if (sess->s_ttyvp) {
OpenPOWER on IntegriCloud