summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2015-06-28 11:06:19 +0100
committerMaxime Coste <frrrwww@gmail.com>2015-06-28 11:06:19 +0100
commit05b4d95a56b07d9d5ed966a6ffa8ae4abfa4cf71 (patch)
tree77dc84a8174a4a32c70be7f006b86237ccb2fcf3 /src
parent8795a5673143dfac24656e3c1fe0f998665f1475 (diff)
Run BufReadFifo hook after reading from fifo
Diffstat (limited to 'src')
-rw-r--r--src/buffer_utils.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/buffer_utils.cc b/src/buffer_utils.cc
index d208386e..9f8f8860 100644
--- a/src/buffer_utils.cc
+++ b/src/buffer_utils.cc
@@ -155,6 +155,8 @@ Buffer* create_fifo_buffer(String name, int fd, bool scroll)
while (--loops and count > 0 and
select(fifo+1, &rfds, nullptr, nullptr, &tv) == 1);
+ buffer->run_hook_in_own_context("BufReadFifo", buffer->name());
+
if (count <= 0)
buffer->values().erase(fifo_watcher_id); // will delete this
}), std::move(watcher_deleter));