fifo: buffer size is 4k instead of 512
This commit is contained in:
parent
f6d2533cae
commit
ebae75e96e
|
@ -245,8 +245,8 @@ Buffer* open_fifo(const String& name , const String& filename, Context& context)
|
||||||
);
|
);
|
||||||
|
|
||||||
EventManager::instance().watch(fd, [buffer, &context](int fd) {
|
EventManager::instance().watch(fd, [buffer, &context](int fd) {
|
||||||
char data[512];
|
char data[4096];
|
||||||
ssize_t count = read(fd, data, 512);
|
ssize_t count = read(fd, data, 4096);
|
||||||
buffer->insert(buffer->end()-1,
|
buffer->insert(buffer->end()-1,
|
||||||
count > 0 ? String(data, data+count)
|
count > 0 ? String(data, data+count)
|
||||||
: "*** kak: fifo closed ***\n");
|
: "*** kak: fifo closed ***\n");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user