forked from enlightenment/efl
copy the name into the buffer so that svr->path gets set correctly later
SVN revision: 26132
This commit is contained in:
parent
a857aa5926
commit
5ad73d3440
|
@ -207,6 +207,10 @@ ecore_con_server_add(Ecore_Con_Type compl_type,
|
||||||
else
|
else
|
||||||
snprintf(buf, sizeof(buf), "/tmp/.ecore_service|%s|%i", name, port);
|
snprintf(buf, sizeof(buf), "/tmp/.ecore_service|%s|%i", name, port);
|
||||||
}
|
}
|
||||||
|
else if (type == ECORE_CON_LOCAL_ABSTRACT)
|
||||||
|
{
|
||||||
|
strncpy(buf, name, sizeof(buf));
|
||||||
|
}
|
||||||
pmode = umask(mask);
|
pmode = umask(mask);
|
||||||
start:
|
start:
|
||||||
svr->fd = socket(AF_UNIX, SOCK_STREAM, 0);
|
svr->fd = socket(AF_UNIX, SOCK_STREAM, 0);
|
||||||
|
@ -453,6 +457,11 @@ ecore_con_server_connect(Ecore_Con_Type compl_type,
|
||||||
snprintf(buf, sizeof(buf), "/tmp/.ecore_service|%s|%i", name, port);
|
snprintf(buf, sizeof(buf), "/tmp/.ecore_service|%s|%i", name, port);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (type == ECORE_CON_LOCAL_ABSTRACT)
|
||||||
|
{
|
||||||
|
strncpy(buf, name, sizeof(buf));
|
||||||
|
}
|
||||||
|
|
||||||
svr->fd = socket(AF_UNIX, SOCK_STREAM, 0);
|
svr->fd = socket(AF_UNIX, SOCK_STREAM, 0);
|
||||||
if (svr->fd < 0) goto error;
|
if (svr->fd < 0) goto error;
|
||||||
if (fcntl(svr->fd, F_SETFL, O_NONBLOCK) < 0) goto error;
|
if (fcntl(svr->fd, F_SETFL, O_NONBLOCK) < 0) goto error;
|
||||||
|
|
Loading…
Reference in New Issue