mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-07-13 06:45:53 +00:00
BlenderConnection debug crash fix
This commit is contained in:
parent
b5f2b13832
commit
f7826ad7ec
@ -89,7 +89,8 @@ size_t BlenderConnection::_readLine(char* buf, size_t bufSz)
|
|||||||
*(buf-1) = '\0';
|
*(buf-1) = '\0';
|
||||||
return bufSz - 1;
|
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)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
BlenderLog.report(logvisor::Fatal, strerror(errno));
|
BlenderLog.report(logvisor::Fatal, strerror(errno));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user