[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: LMDB and FD_CLOEXEC



h.b.furuseth@usit.uio.no said:
> On Mon, 2014-03-10 at 22:14 +0100, Martin Lucina wrote:
> > is there any particular reason for MDB setting FD_CLOEXEC *only* on
> > me->lfd?
> 
> It sets it to get rid of the file lock on the lockfile,
> and does not bother with the others.

In that case can I suggest adding FD_CLOEXEC to the other descriptors? I'm
using MDB in a program that spawns other processes and I'd prefer not to
leak the fds to them. mdb_env_get_fd() does not help here since it doesn't
give me all the fds.

Martin
>