svn commit: r200685 - head/sys/kern

Ed Schouten ed at FreeBSD.org
Fri Dec 18 20:11:30 UTC 2009


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 at 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;


More information about the svn-src-head mailing list