From: Sebastian Gniazdowski <psprint@zdharma.org>
To: zsh-workers@zsh.org
Subject: addmodulefd(..., FDT_INTERNAL or FDT_MODULE);
Date: Wed, 14 Jun 2017 07:12:14 +0200 [thread overview]
Message-ID: <etPan.5940c5ae.238e1f29.8fd5@MacMini> (raw)
Hello,
I read whole 36870 topic ("Mangement of fdtable[]") and it's hard to get insight on FDT_INTERNAL vs. FDT_MODULE. I now follow initial db_gdbm.c code which used FDT_INTERNAL. Is it a good choice?
I think both gdbm and redis support cloned file descriptor on fork(), because test cases work fine – database-store in subshell works correctly. This also points that file descriptor isn't closed when using FDT_INTERNAL with addmodulefd().
To note, hiredis (unlike libsqlite3) exposes file descriptor in redisContext::fd field, so it's nice that gdbm and redis behave the same.
--
Sebastian Gniazdowski
psprint /at/ zdharma.org
next reply other threads:[~2017-06-14 5:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-14 5:12 Sebastian Gniazdowski [this message]
2017-06-14 23:16 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=etPan.5940c5ae.238e1f29.8fd5@MacMini \
--to=psprint@zdharma.org \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).