Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1573284ybh; Thu, 23 Jul 2020 12:16:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6KFg21hXL3R42C4C3Sz4MTeW4AcjwB72Whf97Sw+HCy2WvTUve/P6at93XrOd/n/mdPvO X-Received: by 2002:a05:6402:202e:: with SMTP id ay14mr5578571edb.233.1595531813882; Thu, 23 Jul 2020 12:16:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595531813; cv=none; d=google.com; s=arc-20160816; b=eYMFdw4Jvz/gftVGUjz0gz/nXd1n3+mi7sO+ONcIobCmZ35lv0DssKbHnnstlPmkxd FD0eHHiyBBP4s5N82uPBZbR/7c19VgojM0wSzJN3Ttl5OpktDvUJsFokOyAXId6yiHIT DAlj3vTYzh7WAzZoCulFOG4QJ/CkhMew/Txlx0XLvQyDSi16kLGB5Kgg+Va8gI2SygwW PxgyuEvqkmtKI0FEoStmH15e1H+TqujHuMa2Jtkwf7XBvhZzVtid97Tnb6yCpqhSkfs3 tAO6SkOZommv4JeDBxStzXlVsvUgdsr/NGy7tYrVGRodPYNXfF48StJgp99viYAZB5T5 Tffw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=THt9ilJoYz20v5rZ7k/cVZYymF9hjGDHxFS2Sk4sUtU=; b=TsNEZs0+48TSMFVRCAVSwzOFxWyN1fFU8yFSLcRHLss/mPOucKeVcMTdIZ1Au3EEQj 6pze8ovD3LxboGddxQKalhdg5KdS8kKqk2eLFR85wUZFbOqAUup3iRBu3apEVSeWjr5i pmVt0q6jv/49RRrT15ZjZDOOPNRGm1G0odvZq16FdyZotVGkpr1TNdhvtH2oLwqkbEjW OmU1quWcJxGrc7Xtq1TlC3K7vabg1abN4PQr+WOd1luLIsVAfTLOMPT1R3gDQHilC/FD V6o/BsDuLjXDrmyUFT6FUbB1z9miwUBh2USEPae/LwrCtmY5ZtgKd/YXtBylJXG8EO0I K9Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=icvIF15s; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l11si2460213edq.493.2020.07.23.12.16.22; Thu, 23 Jul 2020 12:16:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=icvIF15s; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728057AbgGWTQT (ORCPT + 99 others); Thu, 23 Jul 2020 15:16:19 -0400 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:33539 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726814AbgGWTQT (ORCPT ); Thu, 23 Jul 2020 15:16:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1595531778; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=THt9ilJoYz20v5rZ7k/cVZYymF9hjGDHxFS2Sk4sUtU=; b=icvIF15s87SyCvWY4zkyupgej2yV9f9lhKUos8BqkGLRkpRRYNbEnFpiPAb+3f/IvyS7ns y8W2WxNRICWrbniNiiBxibBuQhcYj+6XDdxg7Npy1q46o6ZPTkdceyaWhYSkZpB/ijydh1 YPUqEq0YIoL+yo8vj0WR5wIypTY9mII= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-428-3R-Dk34LOz6dOJ0eaPt8OA-1; Thu, 23 Jul 2020 15:16:15 -0400 X-MC-Unique: 3R-Dk34LOz6dOJ0eaPt8OA-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D455C100CCC2; Thu, 23 Jul 2020 19:16:13 +0000 (UTC) Received: from madhat.boston.devel.redhat.com (ovpn-113-147.phx2.redhat.com [10.3.113.147]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7CE4D8BEDC; Thu, 23 Jul 2020 19:16:13 +0000 (UTC) Subject: Re: [PATCH 2/4] idmapd: Add graceful exit and resource cleanup To: Doug Nazar , linux-nfs@vger.kernel.org References: <20200722055354.28132-1-nazard@nazar.ca> <20200722055354.28132-3-nazard@nazar.ca> <5170afa5-9751-0ab6-5e93-f103857ee259@nazar.ca> From: Steve Dickson Message-ID: <36cad163-448e-9018-78e8-fadb320de8a4@RedHat.com> Date: Thu, 23 Jul 2020 15:16:12 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <5170afa5-9751-0ab6-5e93-f103857ee259@nazar.ca> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On 7/23/20 2:25 PM, Doug Nazar wrote: > On 2020-07-23 13:56, Steve Dickson wrote: >> @@ -290,6 +306,9 @@ main(int argc, char **argv) >>>               serverstart = 0; >>>       } >>>   +    /* Not needed anymore */ >>> +    conf_cleanup(); >>> + >> I'm a bit confused by this comment... If it is not needed why as the call added? > > Sorry, I should have been a bit more verbose in the comment. I meant that we didn't need access to the config file anymore (we've already looked up everything) and can free those resources early. > > Perhaps /* Config not needed anymore */ or something. Ok.. got it... I'll make it work... steved. > > Doug >