Re: difficulties with notmuch2 python bindings for alot

Subject: Re: difficulties with notmuch2 python bindings for alot

Date: Sun, 14 Jun 2020 19:44:33 -0300

To: Floris Bruynooghe, Daniel Kahn Gillmor, Notmuch Mail

Cc:

From: David Bremner


Floris Bruynooghe <flub@devork.be> writes:

> One thing that they encountered and don't yet understand is that they
> reported issues with leaking filedescriptors.  They used the bindings in
> a way where I expect it to only call notmuch_database_destroy() when
> they are done with it.  From reading notmuch.h I think that's correct
> and there's no need to call notmuch_database_close() first.  Yet someone
> reported that explicitly calling close helped.  Is the assumption I made
> of only calling destroy correct?

The first thing destroy does is call close. My read of the
notmuch_database_close code is that it is idempotent (calling multiple
times does not change anything).

d

_______________________________________________
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch

Thread: