Call _ecore_pipe_unhandle() when you return from _ecore_pipe_read() or the fd will never be closed.
This fixed increasing numbers of fd handler issue when you call ecore_pipe_add/del repeatedly.
In that case, reusing ecore_pipe is recommended though.
+2013-05-22 Daniel Juyung Seo (SeoZ)
+
+ * Fix fd handler increase issue when ecore_pipe_add/del is called repeatedly.
+
2013-05-22 ChunEon Park (Hermet)
* Edje textblock: keep the text styles when new font by the text class is applied.
* Ecore-imf: fix crash when ecore_imf_context_del is called in ecore_imf_context_input_panel_callback_call
* Edje textblock: Fixed issue with quoted formats.
* Edje textblock: Keep the text styles when new font by the text class is applied.
+ * Fix fd handler increase issue when ecore_pipe_add/del is called repeatedly.
else if ((ret == PIPE_FD_ERROR) &&
((errno == EINTR) || (errno == EAGAIN)))
{
+ _ecore_pipe_unhandle(p);
return ECORE_CALLBACK_RENEW;
}
else
ERR("An unhandled error (ret: %i errno: %i [%s])"
"occurred while reading from the pipe the length",
(int)ret, errno, strerror(errno));
+ _ecore_pipe_unhandle(p);
return ECORE_CALLBACK_RENEW;
}
#else