mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-05 16:10:55 +00:00
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:
parent
923218fd4a
commit
6ba9ec2d09
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=153484
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue