Avoid crash if fdopen failed in IPC

This commit is contained in:
Alex Beregszaszi
2017-02-08 21:24:29 +00:00
parent 43bae9dd0b
commit 3be6d10525
+2
View File
@@ -75,6 +75,8 @@ IPCSocket::IPCSocket(string const& _path): m_path(_path)
BOOST_FAIL("Error connecting to IPC socket: " << _path);
m_fp = fdopen(m_socket, "r");
if (!m_fp)
BOOST_FAIL("Error opening IPC socket: " << _path);
#endif
}