Enlightenment CVS committal Author : onefang Project : e17 Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore Modified Files: ecore_exe.c Log Message: * More robust method of checking if the fd's need to be closed. * Minor preperation for respawn. =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore/ecore_exe.c,v retrieving revision 1.30 retrieving revision 1.31 diff -u -3 -r1.30 -r1.31 --- ecore_exe.c 1 Jan 2006 21:20:42 -0000 1.30 +++ ecore_exe.c 4 Jan 2006 16:29:36 -0000 1.31 @@ -900,8 +900,8 @@ IF_FN_DEL(ecore_main_fd_handler_del, exe->write_fd_handler); IF_FN_DEL(ecore_main_fd_handler_del, exe->read_fd_handler); - if (exe->flags & ECORE_EXE_PIPE_READ) E_NO_ERRNO(result, close(exe->child_fd_read), ok); - if (exe->flags & ECORE_EXE_PIPE_WRITE) E_NO_ERRNO(result, close(exe->child_fd_write), ok); + if (exe->child_fd_read) E_NO_ERRNO(result, close(exe->child_fd_read), ok); + if (exe->child_fd_write) E_NO_ERRNO(result, close(exe->child_fd_write), ok); IF_FREE(exe->write_data_buf); IF_FREE(exe->read_data_buf); IF_FREE(exe->cmd); @@ -1073,7 +1073,6 @@ if (exe->child_fd_write) E_NO_ERRNO(result, close(exe->child_fd_write), ok); exe->child_fd_write = 0; IF_FREE(exe->write_data_buf); - exe->flags &= ~ECORE_EXE_PIPE_WRITE; exe->close_write = 0; } ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs