From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id SDTiHkXP514zXgAA0tVLHw (envelope-from ) for ; Mon, 15 Jun 2020 19:43:01 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id oFK7GkXP516IRAAA1q6Kng (envelope-from ) for ; Mon, 15 Jun 2020 19:43:01 +0000 Received: from arlo.cworth.org (arlo.cworth.org [50.126.95.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7F3CD940704 for ; Mon, 15 Jun 2020 19:42:58 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 84A2F6DE0A42; Mon, 15 Jun 2020 12:42:55 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MHOYuPlwXeOH; Mon, 15 Jun 2020 12:42:54 -0700 (PDT) Received: from arlo.cworth.org (localhost [IPv6:::1]) by arlo.cworth.org (Postfix) with ESMTP id 11F7A6DE0A43; Mon, 15 Jun 2020 12:42:53 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 3C7096DE0A43 for ; Mon, 15 Jun 2020 12:42:52 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id go_YR_BiDHiI for ; Mon, 15 Jun 2020 12:42:51 -0700 (PDT) Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) by arlo.cworth.org (Postfix) with ESMTPS id DD7D16DE0A42 for ; Mon, 15 Jun 2020 12:42:50 -0700 (PDT) Received: by mail-ej1-f45.google.com with SMTP id l27so18782814ejc.1 for ; Mon, 15 Jun 2020 12:42:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version; bh=xVkBz62oyahr85uVr8R9OyJT7QC/wGQCCtqr+dL+1jA=; b=NaOGZxdQmokO7cQti5OA5XL8Mz2wq9IOWBBh4BGSZYnSPYJ02BoVpo46cKh7nwc5HH Wd/FqpePnFwU+o68fQ0Iyq1ADtpAoErfE6gwLgtRnrtHeauTFt3fHJFI8IdkDNAMM4H8 2u/XMptQZmXRP7VTiHgc5yZU2TfgQiYf1VkIg6+1bOlfO3pl7Nt7LoxY6fHCtkRopJ3s OZKTnMmrA+glluTgCNNsHFVDYgQNsPiwUtyg2Sx21xAVskb69ufVLGe27swbopx88Y20 fRr1GYsrYS+Wf4Uq7guQGbGQmX+yFHx4vSwG5nYXUMH8IQUHr5IkD4sRTvVU22cemAD6 GE8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:in-reply-to:references :date:message-id:mime-version; bh=xVkBz62oyahr85uVr8R9OyJT7QC/wGQCCtqr+dL+1jA=; b=Es2REYwQbZpAMq7oLKyNwOaLsnQcxG6fmFxEEwnXAK8d2Jj7NAehY15yVtjguDaEOH VkduZgkM53t1sfYENfCBcU1Mo3l04A1+t2jwiHQl0eTHyrvqvcgJ+GqI3KZm+5KEZlC2 mu6RnqQkPIgyB7FpbsHLs8b8oA5zVUKAkAQCUztdBCsTAZ3AVanBOY9Bxfp43xNbIfpd 3tJT+bXzt8XjpSnHBZ5KruTn1XgsFdxgvKncbepksKyXGoLIIpRuUJmkW8yX8UTh6cQc 5/aQajieajJILLygLjG4HkOJGPTYSY1EMtl8HvKX8+duWeX0gBjaYiQ01QhQt6JL/NMo Zm+w== X-Gm-Message-State: AOAM5328ylw/g+2Bm0z7F1EBrdS4oTIL4Wd/LwNl8tD/33lPGGY9h9Hm ZwZieooj8uPLhL0MHyghPqs= X-Google-Smtp-Source: ABdhPJzo3cukdNzB8TVPA0a9suzSqns/zwbCkxxBh3RmQNUg1nWv3fyPq2+NF49BGxG3M24tawe4ZQ== X-Received: by 2002:a17:906:aec5:: with SMTP id me5mr15297205ejb.54.1592250169010; Mon, 15 Jun 2020 12:42:49 -0700 (PDT) Received: from powell.devork.be (2a02-8388-8480-1180-4c18-fc69-8d8c-22b5.cable.dynamic.v6.surfer.at. [2a02:8388:8480:1180:4c18:fc69:8d8c:22b5]) by smtp.gmail.com with ESMTPSA id q3sm8947840eds.0.2020.06.15.12.42.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jun 2020 12:42:48 -0700 (PDT) Received: (nullmailer pid 203297 invoked by uid 1000); Mon, 15 Jun 2020 19:42:45 -0000 From: Floris Bruynooghe To: David Bremner , Daniel Kahn Gillmor , Notmuch Mail Subject: Re: difficulties with notmuch2 python bindings for alot In-Reply-To: <87imftxo6m.fsf@tethera.net> References: <87sgf4xtpl.fsf@fifthhorseman.net> <877dw91l0q.fsf@powell.devork.be> <87imftxo6m.fsf@tethera.net> Date: Mon, 15 Jun 2020 21:42:45 +0200 Message-ID: <874krc15fu.fsf@powell.devork.be> MIME-Version: 1.0 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: notmuch-bounces@notmuchmail.org Sender: "notmuch" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (body hash did not verify) header.d=gmail.com header.s=20161025 header.b=NaOGZxdQ; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 50.126.95.6 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Spam-Score: 1.49 X-TUID: 6B74IzG0c5GW On Sun 14 Jun 2020 at 19:44 -0300, David Bremner wrote: > Floris Bruynooghe 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). Thanks for confirming, so that should be fine. Cheers, Floris