[Xapian-discuss] problem on closing writable databases

Olly Betts olly at survex.com
Mon Feb 23 09:46:28 GMT 2009


On Fri, Feb 20, 2009 at 01:18:20PM +0000, Olly Betts wrote:
> After we fork() the locking process but before we exec() /bin/cat we
> should close all the fds apart from that for the pipe to our parent.
> 
> I'll fix that, and backport the fix for 1.0.11.

Done.

As a bonus, I also fixed the locking process to chdir("/") so that it
doesn't block unmounting of whatever the current directory happens to be
at the time the database lock is obtained.

Cheers,
    Olly



More information about the Xapian-discuss mailing list