add: msg_lock = create_locks( 1 ); if (!msg_lock) { LOG(L_ERR,"ERROR:init_msg_queue: cannot create lock\n"); goto error; }
context: int init_msg_queue(){	if (pipe( msg_pipe )==-1) {		LOG(L_ERR,"ERROR:init_msg_queue: cannot create pipe : %s\n",			strerror(errno));		goto error;	}	return 1;error:	return -1;}