rem: LOG(L_ERR, "init_unixsock_socket: fcntl failed: %s\n",
add: LOG(L_ERR, "ERROR: init_unixsock_socket: fcntl failed: %s\n",
context: int init_unixsock_socket(void){	struct sockaddr_un addr;	int len, flags;	if (unixsock_name == 0) {		DBG("init_unixsock_socket: No unix domain socket"		    " will be opened\n");		return 1;	}	len = strlen(unixsock_name);	if (len == 0) {		DBG("init_unixsock_socket: Unix domain socket server disabled\n");		return 1;	} else if (len > 107) {		LOG(L_ERR, "init_unixsock_socket: Socket name too long\n");		return -1;	}	DBG("init_unixsock_socket: Initializing Unix domain socket server @ %s\n", 	    unixsock_name);	if (unlink(unixsock_name) == -1) {		if (errno != ENOENT) {			LOG(L_ERR, "init_unixsock_socket: Error while unlinking "			    "old socket (%s): %s\n", unixsock_name, strerror(errno));			return -1;		}	}	rx_sock = socket(PF_LOCAL, SOCK_DGRAM, 0);	if (rx_sock == -1) {		LOG(L_ERR, "init_unixsock_socket: Cannot create RX socket: %s\n", 		    strerror(errno));		return -1;	}	memset(&addr, 0, sizeof(addr));	addr.sun_family = PF_LOCAL;	memcpy(addr.sun_path, unixsock_name, len);	if (bind(rx_sock, (struct sockaddr*)&addr, SUN_LEN(&addr)) == -1) {		LOG(L_ERR, "init_unixsock_socket: bind: %s\n", strerror(errno));		goto err_rx;	}	tx_sock = socket(PF_LOCAL, SOCK_DGRAM, 0);	if (tx_sock == -1) {		LOG(L_ERR, "init_unixsock_socket: Cannot create TX socket: %s\n",		    strerror(errno));		goto err_rx;	}	     /* Turn non-blocking mode on */	flags = fcntl(tx_sock, F_GETFL);	if (flags == -1){		LOG(L_ERR, "init_unixsock_socket: fcntl failed: %s\n",		    strerror(errno));		goto err_both;	}			if (fcntl(tx_sock, F_SETFL, flags | O_NONBLOCK) == -1) {		LOG(L_ERR, "init_unixsock_socket: fcntl: set non-blocking failed:"		    " %s\n", strerror(errno));		goto err_both;	}		return 1; err_both:	close(tx_sock); err_rx:	close(rx_sock);	return -1;}