Changeset 138558


Ignore:
Timestamp:
Jul 12, 2015, 10:57:24 AM (5 years ago)
Author:
cal@…
Message:

base: darwintrace: use darwintrace_set_sock() rather than its implementation pthread_setspecific()

That also gets us error handling for pthread_setspecific.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/darwintracelib1.0/darwintrace.c

    r138530 r138558  
    138138        fclose(dtsock);
    139139        __darwintrace_close_sock = -1;
    140         pthread_setspecific(sock_key, NULL);
     140        __darwintrace_sock_set(NULL);
    141141}
    142142
     
    341341                fclose(dtsock);
    342342                __darwintrace_close_sock = -1;
    343                 pthread_setspecific(sock_key, NULL);
     343                __darwintrace_sock_set(NULL);
    344344        }
    345345}
Note: See TracChangeset for help on using the changeset viewer.