Subject: CVS commit: src/usr.bin/ktrace
To: None <source-changes@NetBSD.org>
From: Christos Zoulas <christos@netbsd.org>
List: source-changes
Date: 06/24/2004 15:50:50
Module Name:	src
Committed By:	christos
Date:		Thu Jun 24 15:50:50 UTC 2004

Modified Files:
	src/usr.bin/ktrace: ktrace.1 ktrace.c

Log Message:
Fix a bug in ktruss and ktrace, where they would randomly stop tracing if
the write to the ktraced file descriptor (when they used fktrace internally)
would block. Fix by clearing the non-blocking bit in the file descriptor by
default, so that the writes will block. This has the side effect of stopping
the traced process. Add a flag to override (-n) this behavior and have the
trace stop without blocking the traced process (the previous behavior).
Fix lint, add checks to failed syscalls, ansify.


To generate a diff of this commit:
cvs rdiff -r1.26 -r1.27 src/usr.bin/ktrace/ktrace.1
cvs rdiff -r1.34 -r1.35 src/usr.bin/ktrace/ktrace.c

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