From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27630 invoked by alias); 14 Jun 2017 05:12:24 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 41289 Received: (qmail 14720 invoked from network); 14 Jun 2017 05:12:24 -0000 X-Qmail-Scanner-Diagnostics: from aok120.rev.netart.pl by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(85.128.245.120):SA:0(0.0/5.0):. Processed in 2.032506 secs); 14 Jun 2017 05:12:24 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: psprint@zdharma.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at zdharma.org does not designate permitted sender hosts) X-Virus-Scanned: by amavisd-new using ClamAV (9) Date: Wed, 14 Jun 2017 07:12:14 +0200 From: Sebastian Gniazdowski To: zsh-workers@zsh.org Message-ID: Subject: addmodulefd(..., FDT_INTERNAL or FDT_MODULE); X-Mailer: Airmail (231) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello, I read whole=C2=A036870 topic (=22Mangement of fdtable=5B=5D=22) and it's= hard to get insight on =46DT=5FINTERNAL vs. =46DT=5FMODULE. I now follow= initial db=5Fgdbm.c code which used =46DT=5FINTERNAL. Is it a good choic= e=3F I think both gdbm and redis support cloned file descriptor on fork(), bec= ause test cases work fine =E2=80=93 database-store in subshell works corr= ectly. This also points that file descriptor isn't closed when using =46D= T=5FINTERNAL with addmodulefd(). To note, hiredis (unlike libsqlite3) exposes file descriptor in redisCont= ext::fd field, so it's nice that gdbm and redis behave the same. -- Sebastian Gniazdowski psprint /at/ zdharma.org