ret = pthread_attr_init(&attr);
ret = pthread_attr_setstacksize(&attr, THREADSTACKSIZE);
ret = pthread_create(&thread, &attr, CTC_backend, (void *)start_routine);
- if (ret != 0) syslog(LOG_EMERG, "pthread_create() : %s", strerror(errno));
+ if (ret != 0) syslog(LOG_ERR, "pthread_create() : %m");
}
memset(&masterTSD, 0, sizeof(struct thread_tsd));
}
-extern void ShutDownEventQueues(void);
-int EventQShuttingDown = 0;
-int EVQShutDown = 0;
/*
* Initialize the thread system
*/
void go_threading(void)
{
if (pthread_key_create(&ThreadKey, NULL) != 0) {
- syslog(LOG_EMERG, "pthread_key_create() : %s", strerror(errno));
+ syslog(LOG_ERR, "pthread_key_create() : %m");
abort();
}