- notifiers->quit_pipe = quit_pipe;
- notifiers->ust_cmd_queue = cmd_queue;
- sem_init(¬ifiers->ready, 0, 0);
+ thread_state->quit_pipe = quit_pipe;
+ thread_state->ust_cmd_queue = cmd_queue;
+ application_socket = create_application_socket();
+ if (application_socket < 0) {
+ goto error;
+ }
+ thread_state->application_socket = application_socket;
+ sem_init(&thread_state->ready, 0, 0);