Simplify fd handling for flintlock
commit3275a791482d8e42dbfdf636dde4cbf618c481e5
authorOlly Betts <olly@survex.com>
Wed, 3 Apr 2024 08:19:16 +0000 (3 21:19 +1300)
committerOlly Betts <olly@survex.com>
Wed, 3 Apr 2024 08:39:38 +0000 (3 21:39 +1300)
treee53046c2255982f37b33a99b7f82b556d729fcd2
parentd061cfabd37d67a866017bcbeb1057dba6bc56d7
Simplify fd handling for flintlock

This simplifies the case when we hold a traditional fcntl() lock in a
child process.  As well as being simpler, we no longer end up with
fds without close-on-exec set in the parent process in corner cases.
xapian-core/backends/flint_lock.cc
xapian-core/backends/flint_lock.h