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


Groups > gnu.bash.bug > #11987

Re: bash closes fd twice.

From Mike Frysinger <vapier@gentoo.org>
Newsgroups gnu.bash.bug
Subject Re: bash closes fd twice.
Date 2015-12-11 14:08 -0500
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>

Show all headers | 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