In pipe_write(): when uiomove() fails, do not spin on it forever.

Submitted by:	Kostik Belousov <kostikbel at gmail.com> on -current@
Message-ID:	<20051216151016.GE84442@deviant.zoral.local>
MFC After:	3 weeks
This commit is contained in:
Xin LI 2005-12-16 18:32:39 +00:00
parent 923218fd4a
commit 6ba9ec2d09
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=153484

View file

@ -1176,6 +1176,8 @@ pipe_write(fp, uio, active_cred, flags, td)
("Pipe buffer overflow"));
}
pipeunlock(wpipe);
if (error != 0)
break;
} else {
/*
* If the "read-side" has been blocked, wake it up now.