diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2004-05-14 21:33:59 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2004-05-14 21:33:59 +0000 |
commit | 8db5f8d29780629a4bf73ec55f434f2c774ec8b2 (patch) | |
tree | 5b4896afc89a9caa2d76fa971f348e9e36fd51dd /bin/csh/func.c | |
parent | 40415f62a5f614d6d6b0b9a92882934895e42f1a (diff) |
Fix a bug that occurs when a FIFO is opened for writing with
O_NONBLOCK set and there are no readers. Before returning ENXIO
fifo_open calls VOP_CLOSE (and hence fifo_close). However, since
fi_writers has not yet been incremented, when fifo_close decements
fi_writers it is one too few. This could cause qmail processes
to spin, consuming all the CPU.
Noticed by avsm@ and henning@, test case provided by claudio@, Ok pedro@
Diffstat (limited to 'bin/csh/func.c')
0 files changed, 0 insertions, 0 deletions