From 662cf55fc93c5641fba1548fd97d2c1f7269e3ff Mon Sep 17 00:00:00 2001 From: leitner Date: Fri, 20 Jan 2012 19:19:49 +0000 Subject: [PATCH] accept -3 as error return from the callback, too --- io/io_mmapwritefile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io/io_mmapwritefile.c b/io/io_mmapwritefile.c index 87d8e74..20e81c7 100644 --- a/io/io_mmapwritefile.c +++ b/io/io_mmapwritefile.c @@ -55,7 +55,7 @@ int64 io_mmapwritefile(int64 out,int64 in,uint64 off,uint64 bytes,io_write_callb if (left>bytes) left=bytes; while (left>0) { m=writecb(out,c,left); - if (m==-1) { + if (m<0) { e->canwrite=0; e->next_write=-1; if (errno!=EAGAIN) {