Rodrigo Arias <rodarima@gmail.com> wrote:
Hi,
Right away dillo exits and the console message shows this:
** ERROR **: Control_read_cb Resource temporarily unavailable
Hmm, I don't think I'm catching all possible errors from that socket. Maybe this patch can help:
---8<--- diff --git a/src/IO/control.c b/src/IO/control.c index 6f677e52..c6cd15bf 100644 --- a/src/IO/control.c +++ b/src/IO/control.c @@ -110,7 +110,7 @@ static void Control_read_cb(int fd, void *data) r = read(new_fd, buf, 1); _MSG("read = %zd\n", r); if (r < 0) { - if (errno == EINTR) { + if (errno == EINTR || errno == EAGAIN || errno == EWOULDBLOCK) { continue; } else { MSG_ERR("Control_read_cb %s\n", dStrerror(errno)); ---8<---
Let me know if that makes it work.
Looks to be working now! Thanks for this very cool new feature, BTW! Regards, Alex PS. Any chance of adding an option to reload dillorc prefs too? :)