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
@ -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…
x
Reference in New Issue
Block a user