aboutsummaryrefslogtreecommitdiff
path: root/dpi
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2009-11-18 09:29:32 -0300
committerJorge Arellano Cid <jcid@dillo.org>2009-11-18 09:29:32 -0300
commitdf9295e0123287f5ca13721e4a90d83fb62ba711 (patch)
treeb0da0d5685eacdc2af24034de476f0afa22d5077 /dpi
parentfc7723233b4588ae2cf06c657f0dcd7363c725d2 (diff)
WORKAROUND for an obscure bug not delivering bookmarks' "Add Section" page
Diffstat (limited to 'dpi')
-rw-r--r--dpi/bookmarks.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/dpi/bookmarks.c b/dpi/bookmarks.c
index a4d7c74b..0119bc8e 100644
--- a/dpi/bookmarks.c
+++ b/dpi/bookmarks.c
@@ -1749,6 +1749,11 @@ int main(void) {
}
}
+ /* WORKAROUND: there's an obscure bug not delivering our bookmarks'
+ * "Add Section" page. Not closing the completely unrelated stream
+ * in dillo's Dpi_read_comm_keys() also makes it work! */
+ while (usleep(2) < 0 && errno == EINTR) ;
+
a_Dpip_dsh_close(sh);
a_Dpip_dsh_free(sh);