Subject: CVS commit: syssrc/sys/kern
To: None <source-changes@netbsd.org>
From: Jaromir Dolecek <jdolecek@netbsd.org>
List: source-changes
Date: 09/29/2001 16:48:13
Module Name:	syssrc
Committed By:	jdolecek
Date:		Sat Sep 29 13:48:12 UTC 2001

Modified Files:
	syssrc/sys/kern: sys_pipe.c

Log Message:
Update the uio resid counts appropriately when any error occurs
(not just EPIPE), so that the higher-level code would note partial
write has happened and DTRT if the write was interrupted due to
e.g. delivery of signal.

This fixes kern/14087 by Frank van der Linden.
Much thanks to Frank for extensive help with debugging this, and review
of the fix.

Note: EPIPE/SIGPIPE delivery behaviour was retained - they're delivered
even if the write was partially successful.


To generate a diff of this commit:
cvs rdiff -r1.14 -r1.15 syssrc/sys/kern/sys_pipe.c

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