[138558] trunk/base/src/darwintracelib1.0/darwintrace.c

cal at macports.org cal at macports.org
Sun Jul 12 03:57:24 PDT 2015


Revision: 138558
          https://trac.macports.org/changeset/138558
Author:   cal at macports.org
Date:     2015-07-12 03:57:24 -0700 (Sun, 12 Jul 2015)
Log Message:
-----------
base: darwintrace: use __darwintrace_set_sock() rather than its implementation pthread_setspecific()

That also gets us error handling for pthread_setspecific.

Modified Paths:
--------------
    trunk/base/src/darwintracelib1.0/darwintrace.c

Modified: trunk/base/src/darwintracelib1.0/darwintrace.c
===================================================================
--- trunk/base/src/darwintracelib1.0/darwintrace.c	2015-07-12 10:56:10 UTC (rev 138557)
+++ trunk/base/src/darwintracelib1.0/darwintrace.c	2015-07-12 10:57:24 UTC (rev 138558)
@@ -137,7 +137,7 @@
 	__darwintrace_close_sock = fileno(dtsock);
 	fclose(dtsock);
 	__darwintrace_close_sock = -1;
-	pthread_setspecific(sock_key, NULL);
+	__darwintrace_sock_set(NULL);
 }
 
 /**
@@ -340,7 +340,7 @@
 		__darwintrace_close_sock = fileno(dtsock);
 		fclose(dtsock);
 		__darwintrace_close_sock = -1;
-		pthread_setspecific(sock_key, NULL);
+		__darwintrace_sock_set(NULL);
 	}
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150712/994a0b01/attachment.html>


More information about the macports-changes mailing list