Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Dec 2009 20:11:29 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r200685 - head/sys/kern
Message-ID:  <200912182011.nBIKBTsA007153@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ed
Date: Fri Dec 18 20:11:29 2009
New Revision: 200685
URL: http://svn.freebsd.org/changeset/base/200685

Log:
  Make the wchan names of pts(4) fit in top(1).
  
  Just like a similar change we made to the TTY code about half a year
  ago, make these strings look similar.
  
  Suggested by:	Jille Timmermans <jille@quis.cx>

Modified:
  head/sys/kern/tty_pts.c

Modified: head/sys/kern/tty_pts.c
==============================================================================
--- head/sys/kern/tty_pts.c	Fri Dec 18 20:08:29 2009	(r200684)
+++ head/sys/kern/tty_pts.c	Fri Dec 18 20:11:29 2009	(r200685)
@@ -733,8 +733,8 @@ pts_alloc(int fflags, struct thread *td,
 
 	/* Allocate TTY and softc. */
 	psc = malloc(sizeof(struct pts_softc), M_PTS, M_WAITOK|M_ZERO);
-	cv_init(&psc->pts_inwait, "pts inwait");
-	cv_init(&psc->pts_outwait, "pts outwait");
+	cv_init(&psc->pts_inwait, "ptsin");
+	cv_init(&psc->pts_outwait, "ptsout");
 
 	psc->pts_unit = unit;
 	psc->pts_uidinfo = uid;
@@ -772,8 +772,8 @@ pts_alloc_external(int fflags, struct th
 
 	/* Allocate TTY and softc. */
 	psc = malloc(sizeof(struct pts_softc), M_PTS, M_WAITOK|M_ZERO);
-	cv_init(&psc->pts_inwait, "pts inwait");
-	cv_init(&psc->pts_outwait, "pts outwait");
+	cv_init(&psc->pts_inwait, "ptsin");
+	cv_init(&psc->pts_outwait, "ptsout");
 
 	psc->pts_unit = -1;
 	psc->pts_cdev = dev;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912182011.nBIKBTsA007153>