process.c: Prevent data loss for process output streams

For a terminating process, it's output streams could be closed,
before all data is read.
This commit is contained in:
oni-link
2016-04-23 00:11:33 +02:00
parent 529e2ab178
commit f0967b0f4c
5 changed files with 45 additions and 5 deletions

View File

@@ -15,7 +15,7 @@ RBuffer *rbuffer_new(size_t capacity)
FUNC_ATTR_WARN_UNUSED_RESULT FUNC_ATTR_NONNULL_RET
{
if (!capacity) {
capacity = 0xffff;
capacity = 0x10000;
}
RBuffer *rv = xmalloc(sizeof(RBuffer) + capacity);