diff options
author | Ben Byer <bbyer@apple.com> | 2008-04-17 12:27:12 -0700 |
---|---|---|
committer | Ben Byer <bbyer@apple.com> | 2008-04-17 12:27:12 -0700 |
commit | fa0645b452cbebd1800a63f1c95cb77fef4ab211 (patch) | |
tree | 512e837adeaef0298036738cabdfeba8698d136e /dix | |
parent | a3d40f0549f6c6f49fffc286bcdaad758fa92367 (diff) |
removed Xquartz debugging code that leaked into master. Our Bad.
Diffstat (limited to 'dix')
-rw-r--r-- | dix/main.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/dix/main.c b/dix/main.c index 8f6507f5c..db4347341 100644 --- a/dix/main.c +++ b/dix/main.c @@ -113,9 +113,6 @@ Equipment Corporation. #include "dispatch.h" /* InitProcVectors() */ #endif -#include <pthread.h> -pthread_key_t threadname_key=0; - #ifdef DPMSExtension #define DPMS_SERVER #include <X11/extensions/dpms.h> @@ -251,17 +248,6 @@ main(int argc, char *argv[], char *envp[]) char *xauthfile; HWEventQueueType alwaysCheckForInput[2]; - if(threadname_key == 0) ErrorF("pthread_key_create returned %d\n", pthread_key_create(&threadname_key, NULL)); - ErrorF("threadname_key = %d\n", threadname_key); - if(pthread_getspecific(threadname_key) == NULL) { - char *nameptr = malloc(32); - sprintf(nameptr, "main thread %d", random()); - // strcpy(nameptr, "main thread"); - ErrorF("calling: pthread_setspecific(%d, %s)=%d\n", threadname_key, nameptr, pthread_setspecific(threadname_key, nameptr)); - if (pthread_getspecific(threadname_key) != NULL) ErrorF("current thread: %s\n", (char *)pthread_getspecific(threadname_key)); - } else { - if (pthread_getspecific(threadname_key) != NULL) ErrorF("thread was already: %s\n", (char *)pthread_getspecific(threadname_key)); - } display = "0"; InitGlobals(); |