Avoid crash if fdopen failed in IPC

This commit is contained in:
Alex Beregszaszi 2017-02-07 12:32:58 +00:00
parent 43bae9dd0b
commit 3be6d10525

View File

@ -75,6 +75,8 @@ IPCSocket::IPCSocket(string const& _path): m_path(_path)
BOOST_FAIL("Error connecting to IPC socket: " << _path); BOOST_FAIL("Error connecting to IPC socket: " << _path);
m_fp = fdopen(m_socket, "r"); m_fp = fdopen(m_socket, "r");
if (!m_fp)
BOOST_FAIL("Error opening IPC socket: " << _path);
#endif #endif
} }