Subject: CVS commit: src/lib/libc/stdio
To: None <source-changes@NetBSD.org>
From: Nathan J Williams <nathanw@netbsd.org>
List: source-changes
Date: 07/22/2003 00:56:26
Module Name:	src
Committed By:	nathanw
Date:		Tue Jul 22 00:56:25 UTC 2003

Modified Files:
	src/lib/libc/stdio: flockfile.c

Log Message:
Disable cancellation on the first lock, too, not just on internal
recursive locks (Duh).

Disable cancellation around the cond_wait() call, since that's also a
cancellation point. Arguably, that would be better handled with
pthread_cleanup_*(), but stubbing those for libc is difficult, and the
current non-exception-based implementation of cleanup handlers is
probably no faster than disabling and reenabling cancellation.
Finally, it only happens in the slow path where the thread is going to
sleep anyway...


To generate a diff of this commit:
cvs rdiff -r1.7 -r1.8 src/lib/libc/stdio/flockfile.c

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