logger_thread
pthread_create(&logtd, NULL, logger_thread, cmd);
static void *logger_thread(void *arg);