From 2ec7adcbdfc1304cdec7533a7a7fae785705493d Mon Sep 17 00:00:00 2001 From: discomfitor Date: Thu, 6 Jan 2011 22:35:31 +0000 Subject: [PATCH] avoid closing stdout (fd0) git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@55959 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/ecore_con/ecore_con.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/ecore_con/ecore_con.c b/src/lib/ecore_con/ecore_con.c index 3fba5ea..64a0052 100644 --- a/src/lib/ecore_con/ecore_con.c +++ b/src/lib/ecore_con/ecore_con.c @@ -376,7 +376,7 @@ error: if (svr->fd_handler) ecore_main_fd_handler_del(svr->fd_handler); - if (svr->fd >= 0) + if (svr->fd > 0) close(svr->fd); if (svr->write_buf) @@ -497,7 +497,7 @@ error: if (svr->fd_handler) ecore_main_fd_handler_del(svr->fd_handler); - if (svr->fd >= 0) + if (svr->fd > 0) close(svr->fd); ecore_con_ssl_server_shutdown(svr); @@ -1196,7 +1196,7 @@ _ecore_con_server_free(Ecore_Con_Server *svr) if (svr->fd_handler) ecore_main_fd_handler_del(svr->fd_handler); - if (svr->fd >= 0) + if (svr->fd > 0) close(svr->fd); servers = eina_list_remove(servers, svr); @@ -1256,7 +1256,7 @@ _ecore_con_client_free(Ecore_Con_Client *cl) if (cl->fd_handler) ecore_main_fd_handler_del(cl->fd_handler); - if (cl->fd >= 0) + if (cl->fd > 0) close(cl->fd); if (cl->client_addr) -- 2.7.4