Add error callback for ipc handle

This commit is contained in:
patrick96 2021-09-13 18:30:11 +02:00 committed by Patrick Ziegler
parent 52a3961602
commit a158f0d7ec
3 changed files with 19 additions and 15 deletions
src/components

View file

@ -261,7 +261,8 @@ void controller::read_events(bool confwatch) {
if (m_ipc) {
eloop->pipe_handle(
m_ipc->get_file_descriptor(), [this](const string payload) { m_ipc->receive_data(payload); },
[this]() { m_ipc->receive_eof(); });
[this]() { m_ipc->receive_eof(); },
[this](int err) { m_log.err("libuv error while listening to IPC channel: %s", uv_strerror(err)); });
}
if (!m_snapshot_dst.empty()) {