diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2012-09-14 14:29:54 +0200 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2012-09-14 14:29:54 +0200 |
| commit | ebae75e96e8e3af6e9d804fbc7580a9b5763f2cc (patch) | |
| tree | 51a3d845d3cd43bd1d8e18b023562b5fc1aa61f5 /src | |
| parent | f6d2533caed435f407f034cf0ffcdf3c4f0999aa (diff) | |
fifo: buffer size is 4k instead of 512
Diffstat (limited to 'src')
| -rw-r--r-- | src/commands.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands.cc b/src/commands.cc index 90dfa394..d838090f 100644 --- a/src/commands.cc +++ b/src/commands.cc @@ -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"); |
