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


Groups > gnu.bash.bug > #15782 > unrolled thread

Request For Enhancement - TID variable

Started by"Eric S. Raymond" <esr@thyrsus.com>
First post2019-12-26 10:37 -0500
Last post2019-12-26 10:37 -0500
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#15782 — Request For Enhancement - TID variable

From"Eric S. Raymond" <esr@thyrsus.com>
Date2019-12-26 10:37 -0500
SubjectRequest For Enhancement - TID variable
Message-ID<mailman.1456.1577376286.1979.bug-bash@gnu.org>
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

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web