summaryrefslogtreecommitdiff
path: root/src/lib/dev.c
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@ugent.be>2017-10-14 08:29:50 +0000
committerSander Vrijders <sander.vrijders@ugent.be>2017-10-14 08:29:50 +0000
commit1888c137a8ff315bc549c16740aa727da8c666f5 (patch)
tree9cd6534cdd79de613e1be76d876d435db8e344b5 /src/lib/dev.c
parent76ce1f398a6efae7f62b6e786ef94e89be0784c1 (diff)
parent7a98128e053ccd59203757982f7332ed5e4568ea (diff)
downloadouroboros-1888c137a8ff315bc549c16740aa727da8c666f5.tar.gz
ouroboros-1888c137a8ff315bc549c16740aa727da8c666f5.zip
Merged in dstaesse/ouroboros/be-fix-multiblock (pull request #627)
lib: Re-enable multi-block support
Diffstat (limited to 'src/lib/dev.c')
-rw-r--r--src/lib/dev.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/dev.c b/src/lib/dev.c
index 9cb6f2ed..e6e5b4d4 100644
--- a/src/lib/dev.c
+++ b/src/lib/dev.c
@@ -1095,6 +1095,8 @@ ssize_t flow_write(int fd,
DU_BUFF_TAILSPACE,
buf,
count);
+ if (idx < 0)
+ return idx;
pthread_rwlock_rdlock(&ai.lock);
}