snprintf(sock_file, sizeof(sock_file), CTSVC_SOCK_PATH"/.%s", uid,
CTSVC_IPC_SERVICE);
+ WARN("pims-ipc-create() sock_file[%s], uid[%d]", sock_file, uid);
pims_ipc_h ipc = pims_ipc_create(sock_file);
if (NULL == ipc) {
/* LCOV_EXCL_START */
return CONTACTS_ERROR_OUT_OF_MEMORY;
/* LCOV_EXCL_STOP */
}
+ WARN("ctsvc_ipc_connect handle_id = %d ", handle_id);
ret = _ctsvc_ipc_create(&(ipc_data->ipc));
if (CONTACTS_ERROR_NONE != ret) {
_ctsvc_ipc_data_free(ipc_data);
ctsvc_mutex_lock(CTS_MUTEX_CONNECTION);
if (0 == base->connection_count) {
+ WARN("Contacts service connect(%d)", _ctsvc_connection );
ret = ctsvc_ipc_connect(contact, ctsvc_client_get_pid());
if (ret != CONTACTS_ERROR_NONE) {
/* LCOV_EXCL_START */
struct sockaddr_un caddr;
uid_t uid = getuid();
+ WARN("ctsvc_socket_init: socket ref count : %d", __ctsvc_conn_refcnt);
if (0 < __ctsvc_conn_refcnt) {
__ctsvc_conn_refcnt++;
return CONTACTS_ERROR_NONE;
ret = chown(sock_file, getuid(), CTS_SECURITY_FILE_GROUP);
if (0 != ret)
/* LCOV_EXCL_START */
- ERR("chown(%s) Fail(%d)", sock_file, ret);
+ ERR("chown(%s) Fail(%d) errno = %d", sock_file, ret, errno);
/* LCOV_EXCL_STOP */
ret = chmod(sock_file, CTS_SECURITY_DEFAULT_PERMISSION);