Add error callback for ipc handle
This commit is contained in:
parent
52a3961602
commit
a158f0d7ec
3 changed files with 19 additions and 15 deletions
src/components
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue