Commit 69ef1b78 authored by neverlord's avatar neverlord

error handling

parent 3132985f
......@@ -340,7 +340,10 @@ class po_doorman
{
DEBUG(__PRETTY_FUNCTION__);
socket_aid_pair msg{-1, 0};
write(m_pipe_wr, &msg, sizeof(socket_aid_pair));
if (write(m_pipe_wr, &msg, sizeof(socket_aid_pair)) != sizeof(socket_aid_pair))
{
CPPA_CRITICAL("cannot write to pipe");
}
m_thread.join();
close(m_pipe_rd);
close(m_pipe_wr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment