diff options
Diffstat (limited to '')
-rw-r--r-- | libraries/ecore/src/lib/ecore_con/ecore_con_info.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libraries/ecore/src/lib/ecore_con/ecore_con_info.c b/libraries/ecore/src/lib/ecore_con/ecore_con_info.c index 4ece6b0..fdcf0b9 100644 --- a/libraries/ecore/src/lib/ecore_con/ecore_con_info.c +++ b/libraries/ecore/src/lib/ecore_con/ecore_con_info.c | |||
@@ -244,11 +244,10 @@ ecore_con_info_get(Ecore_Con_Server *svr, | |||
244 | unsigned char *tosend = NULL; | 244 | unsigned char *tosend = NULL; |
245 | int tosend_len; | 245 | int tosend_len; |
246 | int canonname_len = 0; | 246 | int canonname_len = 0; |
247 | int err; | ||
248 | 247 | ||
249 | eina_convert_itoa(svr->port, service); | 248 | eina_convert_itoa(svr->ecs ? svr->ecs->port : svr->port, service); |
250 | /* CHILD */ | 249 | /* CHILD */ |
251 | if (!getaddrinfo(svr->name, service, hints, &result) && result) | 250 | if (!getaddrinfo(svr->ecs ? svr->ecs->ip : svr->name, service, hints, &result) && result) |
252 | { | 251 | { |
253 | if (result->ai_canonname) | 252 | if (result->ai_canonname) |
254 | canonname_len = strlen(result->ai_canonname) + 1; | 253 | canonname_len = strlen(result->ai_canonname) + 1; |
@@ -281,13 +280,13 @@ ecore_con_info_get(Ecore_Con_Server *svr, | |||
281 | memcpy(container->service, sbuf, sizeof(container->service)); | 280 | memcpy(container->service, sbuf, sizeof(container->service)); |
282 | } | 281 | } |
283 | 282 | ||
284 | err = write(fd[1], tosend, tosend_len); | 283 | if (write(fd[1], tosend, tosend_len) < 0) perror("write"); |
285 | } | 284 | } |
286 | 285 | ||
287 | if (result) | 286 | if (result) |
288 | freeaddrinfo(result); | 287 | freeaddrinfo(result); |
289 | 288 | ||
290 | err = write(fd[1], "", 1); | 289 | if (write(fd[1], "", 1) < 0) perror("write"); |
291 | close(fd[1]); | 290 | close(fd[1]); |
292 | #if defined(__USE_ISOC99) && !defined(__UCLIBC__) | 291 | #if defined(__USE_ISOC99) && !defined(__UCLIBC__) |
293 | _Exit(0); | 292 | _Exit(0); |