mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-13 16:39:43 -05:00
Merge pull request #1866 from PhenomRetroShare/Fix_SIGSEGV_OnRsThreadStart
Fix SIGSEGV on RsThread::start
This commit is contained in:
commit
1cfbfdaf63
@ -194,6 +194,15 @@ bool RsThread::start(const std::string& threadName)
|
||||
print_stacktrace();
|
||||
return false;
|
||||
}
|
||||
if(!mTid)
|
||||
{
|
||||
RsErr() << __PRETTY_FUNCTION__ << " pthread_create could not create"
|
||||
<< " new thread: " << threadName << " mTid: " << mTid
|
||||
<< std::endl;
|
||||
mHasStopped = true;
|
||||
print_stacktrace();
|
||||
return false;
|
||||
}
|
||||
|
||||
/* Store an extra copy of thread id for debugging */
|
||||
mLastTid = mTid;
|
||||
|
Loading…
Reference in New Issue
Block a user