Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
addmodulefd(..., FDT_INTERNAL or FDT_MODULE);
- X-seq: zsh-workers 41289
- From: Sebastian Gniazdowski <psprint@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: addmodulefd(..., FDT_INTERNAL or FDT_MODULE);
- Date: Wed, 14 Jun 2017 07:12:14 +0200
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author