From: Enlightenment S. <no-...@en...> - 2011-01-06 22:35:40
|
Log: avoid closing stdout (fd0) Author: discomfitor Date: 2011-01-06 14:35:31 -0800 (Thu, 06 Jan 2011) New Revision: 55959 Trac: http://trac.enlightenment.org/e/changeset/55959 Modified: trunk/ecore/src/lib/ecore_con/ecore_con.c Modified: trunk/ecore/src/lib/ecore_con/ecore_con.c =================================================================== --- trunk/ecore/src/lib/ecore_con/ecore_con.c 2011-01-06 22:32:25 UTC (rev 55958) +++ trunk/ecore/src/lib/ecore_con/ecore_con.c 2011-01-06 22:35:31 UTC (rev 55959) @@ -376,7 +376,7 @@ 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 @@ 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 @@ 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 @@ 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) |