mirror of https://gitee.com/bigwinds/arangodb
ignore died process on delete
This commit is contained in:
parent
8052ccf4c4
commit
33d702c190
|
@ -131,7 +131,8 @@ Thread::~Thread () {
|
||||||
if (! _joined) {
|
if (! _joined) {
|
||||||
int res = TRI_DetachThread(&_thread);
|
int res = TRI_DetachThread(&_thread);
|
||||||
|
|
||||||
if (res != TRI_ERROR_NO_ERROR) {
|
// ignore threads that already died
|
||||||
|
if (res != 0 && res != ESRCH) {
|
||||||
errno = res;
|
errno = res;
|
||||||
TRI_set_errno(TRI_ERROR_SYS_ERROR);
|
TRI_set_errno(TRI_ERROR_SYS_ERROR);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue