Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #11987

Re: bash closes fd twice.

Path csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail
From Mike Frysinger <vapier@gentoo.org>
Newsgroups gnu.bash.bug
Subject Re: bash closes fd twice.
Date Fri, 11 Dec 2015 14:08:56 -0500
Lines 50
Approved bug-bash@gnu.org
Message-ID <mailman.1861.1449860944.31583.bug-bash@gnu.org> (permalink)
References <F119653C-158A-4F6E-8D55-486014A5B27B@aist.go.jp> <566AD2B1.7040800@case.edu> <566AD878.4000203@redhat.com>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="wNT7VBaN1rUIB9jO"
X-Trace usenet.stanford.edu 1449860945 9125 208.118.235.17 (11 Dec 2015 19:09:05 GMT)
X-Complaints-To action@cs.stanford.edu
Cc Yoriyuki Yamagata <yoriyuki.yamagata@aist.go.jp>, bug-bash@gnu.org, chet.ramey@case.edu
To Eric Blake <eblake@redhat.com>
Envelope-to bug-bash@gnu.org
Mail-Followup-To Eric Blake <eblake@redhat.com>, chet.ramey@case.edu, Yoriyuki Yamagata <yoriyuki.yamagata@aist.go.jp>, bug-bash@gnu.org
Content-Disposition inline
In-Reply-To <566AD878.4000203@redhat.com>
X-detected-operating-system by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From 140.211.166.183
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.14
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <http://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
Xref csiph.com gnu.bash.bug:11987

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On 11 Dec 2015 07:06, Eric Blake wrote:
> On 12/11/2015 06:42 AM, Chet Ramey wrote:
> > On 12/11/15 12:40 AM, Yoriyuki Yamagata wrote:
> >> Dear list, 
> >>
> >> I found that bash tries to close the same fd twice, consecutively.  I’m using Mac OS X Yosemite, and bash is the newest available (bash-master from http://tiswww.case.edu/php/chet/bash/bashtop.html yesterday).
> > 
> > That's harmless.
> 
> Only if bash is single-threaded (it is) and if no signal handler can
> create fds (that, I'm less sure of).  It is absolutely harmful in a
> multi-threaded program, or in a program where a signal handler might
> open an fd and the signal can occur in the window between the two close()s.

what about loadable bash plugins ? :)
-mike

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: bash closes fd twice. Mike Frysinger <vapier@gentoo.org> - 2015-12-11 14:08 -0500

csiph-web