Bugzilla – Attachment #1204: Validate m_stop in inner FdReader::Run() loop to prevent NS_FATAL_ERROR for bug #1220
{
char buf[1024];
len = read (m_evpipe[0], buf, sizeof (buf));
if (m_stop)
// this thread is done
break;
}
if (len == 0)
NS_FATAL_ERROR ("event pipe closed");