Subject: CVS commit: src/sys/kern
To: None <source-changes@NetBSD.org>
From: David Laight <dsl@netbsd.org>
List: source-changes
Date: 07/23/2003 13:10:29
Module Name:	src
Committed By:	dsl
Date:		Wed Jul 23 13:10:29 UTC 2003

Modified Files:
	src/sys/kern: tty_pty.c

Log Message:
Fix (and simplify) interaction between check_pty() and pty_maxptys().
Lock setting/clearing of tp->t_oproc to guarantee concurrent opens can't
both suceed and that code in tty.c can't get a NULL t_oproc if the value
is re-read after being checked.
There are still MP issues with pt_flags, pt_send and pt_unctl.
Maybe problems that require TTY_LOCK() to be taken before calling std tty
functions.


To generate a diff of this commit:
cvs rdiff -r1.70 -r1.71 src/sys/kern/tty_pty.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.