Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jan 2009 16:43:18 +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: r187722 - head/sys/kern
Message-ID:  <200901261643.n0QGhI3x055932@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ed
Date: Mon Jan 26 16:43:18 2009
New Revision: 187722
URL: http://svn.freebsd.org/changeset/base/187722

Log:
  Use the proper flag to let kern.ttys be executed without Giant.
  
  Pointed out by:	jhb

Modified:
  head/sys/kern/tty.c

Modified: head/sys/kern/tty.c
==============================================================================
--- head/sys/kern/tty.c	Mon Jan 26 15:55:15 2009	(r187721)
+++ head/sys/kern/tty.c	Mon Jan 26 16:43:18 2009	(r187722)
@@ -1053,7 +1053,7 @@ sysctl_kern_ttys(SYSCTL_HANDLER_ARGS)
 	return (error);
 }
 
-SYSCTL_PROC(_kern, OID_AUTO, ttys, CTLTYPE_OPAQUE|CTLFLAG_RD|CTLFLAG_NOLOCK,
+SYSCTL_PROC(_kern, OID_AUTO, ttys, CTLTYPE_OPAQUE|CTLFLAG_RD|CTLFLAG_MPSAFE,
 	0, 0, sysctl_kern_ttys, "S,xtty", "List of TTYs");
 
 /*



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