]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
fs-randomfail: Set errno=EIO when random failure is triggered
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 21 Jun 2017 10:10:19 +0000 (13:10 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 21 Jun 2017 10:10:19 +0000 (13:10 +0300)
commit05d12810ed20a2d1271410b953e1f2b5a8595b71
tree6f3a316d7f23270ac246a7fdaf2843af47a3bf8d
parent44c6d46cefc24daee032d2a0f95f8576fa10889a
fs-randomfail: Set errno=EIO when random failure is triggered

Previously the errno wasn't set at all. It was especially bad if it
happened to be EAGAIN, because that potentially caused hangs.
src/lib-fs/fs-randomfail.c