fifo: buffer size is 4k instead of 512

This commit is contained in:
Maxime Coste 2012-09-14 14:29:54 +02:00
parent f6d2533cae
commit ebae75e96e

View File

@ -245,8 +245,8 @@ Buffer* open_fifo(const String& name , const String& filename, Context& context)
);
EventManager::instance().watch(fd, [buffer, &context](int fd) {
char data[512];
ssize_t count = read(fd, data, 512);
char data[4096];
ssize_t count = read(fd, data, 4096);
buffer->insert(buffer->end()-1,
count > 0 ? String(data, data+count)
: "*** kak: fifo closed ***\n");