mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-03 06:35:08 -04:00
Merge pull request #1866 from PhenomRetroShare/Fix_SIGSEGV_OnRsThreadStart
Fix SIGSEGV on RsThread::start
This commit is contained in:
commit
1cfbfdaf63
1 changed files with 9 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue