From: raster Date: Sat, 20 Sep 2008 03:20:33 +0000 (+0000) Subject: from sacial - condition where pipe close doesnt happen. X-Git-Tag: build/2012-07-04.173327~2881 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=285d9c2c5f0e769b19038ea1fb18f3abfb01881b;p=profile%2Fivi%2Fecore.git from sacial - condition where pipe close doesnt happen. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@36117 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/ecore_con/ecore_con_dns.c b/src/lib/ecore_con/ecore_con_dns.c index e9c64de..8507108 100644 --- a/src/lib/ecore_con/ecore_con_dns.c +++ b/src/lib/ecore_con/ecore_con_dns.c @@ -129,12 +129,12 @@ ecore_con_dns_lookup(const char *name, } /* PARENT */ cbdata->handler = ecore_event_handler_add(ECORE_EXE_EVENT_DEL, _ecore_con_dns_exit_handler, cbdata); + close(fd[1]); if (!cbdata->handler) { ecore_main_fd_handler_del(cbdata->fdh); free(cbdata); close(fd[0]); - close(fd[1]); return 0; } dns_slaves = _ecore_list2_append(dns_slaves, cbdata); @@ -169,7 +169,6 @@ _ecore_con_dns_slave_free(CB_Data *cbdata) { dns_slaves = _ecore_list2_remove(dns_slaves, cbdata); close(ecore_main_fd_handler_fd_get(cbdata->fdh)); - close(cbdata->fd2); ecore_main_fd_handler_del(cbdata->fdh); ecore_event_handler_del(cbdata->handler); free(cbdata);