Subject: CVS commit: src/sys
To: None <source-changes@NetBSD.org>
From: Christos Zoulas <christos@netbsd.org>
List: source-changes
Date: 06/23/2004 23:05:48
Module Name:	src
Committed By:	christos
Date:		Wed Jun 23 23:05:48 UTC 2004

Modified Files:
	src/sys/kern: kern_ktrace.c
	src/sys/sys: ktrace.h

Log Message:
Fix a panic induced by forcing ktrace to inject an emul record on
a ktraced file descriptor that has already been invalidated. Change
all ktrace functions to propagate the error from ktrwrite() and
check for it. Thanks to Pavel Cahyna for finding this and giving
a perfect bug report.

[should be pulled up for 2.0]


To generate a diff of this commit:
cvs rdiff -r1.89 -r1.90 src/sys/kern/kern_ktrace.c
cvs rdiff -r1.38 -r1.39 src/sys/sys/ktrace.h

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