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


Groups > gnu.bash.bug > #15782

Request For Enhancement - TID variable

Path csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail
From "Eric S. Raymond" <esr@thyrsus.com>
Newsgroups gnu.bash.bug
Subject Request For Enhancement - TID variable
Date Thu, 26 Dec 2019 10:37:51 -0500 (EST)
Lines 19
Approved bug-bash@gnu.org
Message-ID <mailman.1456.1577376286.1979.bug-bash@gnu.org> (permalink)
References <20191226153751.587634704BBB@snark.thyrsus.com>
NNTP-Posting-Host lists.gnu.org
X-Trace usenet.stanford.edu 1577376287 2120 209.51.188.17 (26 Dec 2019 16:04:47 GMT)
X-Complaints-To action@cs.stanford.edu
To bug-bash@gnu.org
Envelope-to bug-bash@gnu.org
X-detected-operating-system by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy]
X-Received-From 71.162.243.5
X-Mailman-Approved-At Thu, 26 Dec 2019 11:04:45 -0500
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.23
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 <https://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>
X-Mailman-Original-Message-ID <20191226153751.587634704BBB@snark.thyrsus.com>
Xref csiph.com gnu.bash.bug:15782

Show key headers only | View raw


In attempting to use GNU parallel, with some bash scripts, I
discovered I had a problem with tempfile collisions due to 
all of the thread having the same PID.

I was able to come up with a workaround, but...

RFE: bash should have a TID varuable that returns the vakue of gettid(2).

If the bash devs are too busy for this like the idea, I could write
the patch.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>

During waves of terror attacks, Israel's national police chief will
call on all concealed-handgun permit holders to make sure they carry
firearms at all times, and Israelis have many examples where
concealed permit holders have saved lives.
	-- John R. Lott

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


Thread

Request For Enhancement - TID variable "Eric S. Raymond" <esr@thyrsus.com> - 2019-12-26 10:37 -0500

csiph-web