BlenderConnection debug crash fix

This commit is contained in:
Jack Andersen 2016-04-05 17:25:23 -10:00
parent b5f2b13832
commit f7826ad7ec
1 changed files with 2 additions and 1 deletions

View File

@ -89,7 +89,8 @@ size_t BlenderConnection::_readLine(char* buf, size_t bufSz)
*(buf-1) = '\0';
return bufSz - 1;
}
int ret = read(m_readpipe[0], buf, 1);
int ret;
while ((ret = read(m_readpipe[0], buf, 1)) < 0 && errno == EINTR) {}
if (ret < 0)
{
BlenderLog.report(logvisor::Fatal, strerror(errno));