Path: csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail From: Sam Liddicott Newsgroups: gnu.bash.bug Subject: Re: leaks fd for internal functions but not external command Date: Tue, 23 Jul 2019 16:15:16 +0100 Lines: 15 Approved: bug-bash@gnu.org Message-ID: References: <5c34ecd5-c8b2-7000-46bc-1bbe3f71f163@case.edu> <78679ee9-fdaf-5180-d32f-81d92b936538@case.edu> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: usenet.stanford.edu 1563894958 18518 209.51.188.17 (23 Jul 2019 15:15:58 GMT) X-Complaints-To: action@cs.stanford.edu Cc: bug-bash@gnu.org, bash@packages.debian.org To: Chester Ramey Envelope-to: bug-bash@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=liddicott-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GF/mIywLjfvyFq471FQqL+t3zl5P7cPzgpCS6ZPqDGo=; b=ibaXf9aI3GD1XFClz5EYDD2ojGRrtLKZCFSmGVzFqgT/enlebQ68lJ1nWW4JOZAhJY fS3Bo8DNvM77zZ5Y0qki7H8ttGNTQ7xBuOAnGYuoFCS5CELhNdjUpbmPVdC2RXaXZRdt OnpeAuFJjJeGfUUVbCZe8jATBBvxBJM3Hkdpqq6hbpurBuuZSe7AVOu0fxgFokdj6i/O rnKMOjIPp+lia816yNL6o3ja7mX63byFQMoxKKMp5+BjF5xrr6PZfTTIS0UstUM+Nbop bRAo23664JosBX+WDNoYuG7zASgu5goZ5HW+xTdAVHH9irRrnnWG5FxNN4gHHJek9s3n ALiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GF/mIywLjfvyFq471FQqL+t3zl5P7cPzgpCS6ZPqDGo=; b=ueJLjfD31OvbTeYEEpNjwfN3zuSB+ZgICPBc2masyUC7MbZfWT/Y/DEpXKArMFSuu6 grUiZjqAKPAbmxkbBbnBeDlB/Vydx554MwaUroWTgKLY1fEuxcQgbtGxOkmvEVGzT+39 cR/51jKxuIoTUHX4xL7rwi5Xk+YsMyJmmUhFZses1dNNCh/lNWoxEirDwm80lOjY0/2m uS1Y9ji5QkbaBlvwnr9HScUflLXSBdh/1ubxepHKl3SdoppumPreRcIBtOk5XJhfJPPW 32Z4O4TTbo785XISVpsbcbUwgVvIb5Od+wMWZt4X6w+pAJxuxmIyH7tjC+bnZ0l0CwXX WMKg== X-Gm-Message-State: APjAAAVgiNpTeGzghsvwYSfxjhu0yCjtRERqMKccARygcV26dluXaVOW eXUjwzjm7YURn7kz69S0d9cUL4G0kq+i1EBV+4A= X-Google-Smtp-Source: APXvYqyj2URGH44MGQ4842PMqfM+/X6vqmcFzZ+kqlWn55HxevIcSOZAeh8Uwg0JL/L11EAXUTJ6IKpQvFq+WukyYak= X-Received: by 2002:a19:7616:: with SMTP id c22mr36228525lff.115.1563894952360; Tue, 23 Jul 2019 08:15:52 -0700 (PDT) In-Reply-To: <78679ee9-fdaf-5180-d32f-81d92b936538@case.edu> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::12c X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: <5c34ecd5-c8b2-7000-46bc-1bbe3f71f163@case.edu> <78679ee9-fdaf-5180-d32f-81d92b936538@case.edu> Xref: csiph.com gnu.bash.bug:15209 On Tue, 23 Jul 2019 at 16:13, Chet Ramey wrote: > On 7/23/19 11:11 AM, Sam Liddicott wrote: > > > The report concerns the different behaviour with internal and external > > operations. > > Right. The close-on-exec is deliberate. That's how it was intended. > Doesn't close-on-exec usually takes effect only on the process that does the exec? i.e. the fork that does the exec, not the parent process? Sam