summaryrefslogtreecommitdiff
path: root/dix/main.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter@cs.unisa.edu.au>2008-04-22 18:04:05 +0930
committerPeter Hutterer <peter@cs.unisa.edu.au>2008-04-22 18:04:05 +0930
commit8190ef87547b704848231bde10b1cdffc6442790 (patch)
tree29cb6d5bdefcee879d103953a140373635726f17 /dix/main.c
parent179a082c26f9e562492ee2e59e7f44f949f39f9c (diff)
parent2ddbfd345786aa39b6ccaed82a1ca5c145284ee3 (diff)
Merge branch 'master' into mpx
Conflicts: Xext/EVI.c Xext/appgroup.c Xext/cup.c Xext/mitmisc.c Xext/sampleEVI.c dix/window.c
Diffstat (limited to 'dix/main.c')
-rw-r--r--dix/main.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/dix/main.c b/dix/main.c
index 6a94aaa35..f7824ee83 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();