ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
From: Eric Wong <normalperson@yhbt.net>
To: ruby-core@ruby-lang.org
Subject: [ruby-core:100183] Re: [Ruby master Bug#15661] Disallow concurrent Dir.chdir with block
Date: Sat, 26 Sep 2020 21:29:18 +0000	[thread overview]
Message-ID: <20200926212918.GA2323@dcvr> (raw)
In-Reply-To: <redmine.journal-87754.20200926212027.286@ruby-lang.org>

merch-redmine@jeremyevans.net wrote:
> Removing the block form breaks useful cases in single threaded
> code.

Agreed.

> Fixing it "properly" (by which I assume you mean
> separate pwd per thread) is impossible, as pwd is per-process,
> not per-thread.

openat(2) and the rest of the *at() functions are POSIX 200809,
so it could be possible to mimic per-thread working dirs if the
rest of File, IO, UNIXSocket, etc. were all made aware and used
*at() functions.

  reply	other threads:[~2020-09-26 21:29 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <redmine.issue-15661.20190313121953.286@ruby-lang.org>
2020-09-25  5:30 ` [ruby-core:100122] [Ruby master Bug#15661] Disallow concurrent Dir.chdir with block matz
2020-09-25 20:36 ` [ruby-core:100161] " merch-redmine
2020-09-26 11:27 ` [ruby-core:100173] " sam.saffron
2020-09-26 21:20 ` [ruby-core:100182] " merch-redmine
2020-09-26 21:29   ` Eric Wong [this message]
2020-09-27 10:01 ` [ruby-core:100186] " eregontp
2020-09-28  0:07 ` [ruby-core:100190] " sam.saffron
2020-09-28  9:39 ` [ruby-core:100198] " eregontp
2020-10-01  7:00 ` [ruby-core:100247] " jean.boussier
2020-10-01  7:03 ` [ruby-core:100248] " jean.boussier
2020-10-17 17:43 ` [ruby-core:100420] " jonathan
2020-10-22 14:15 ` [ruby-core:100503] " daniel
2020-12-08  3:50 ` [ruby-core:101302] " nobu
2020-12-24  4:50 ` [ruby-core:101671] " mame

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.ruby-lang.org/en/community/mailing-lists/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200926212918.GA2323@dcvr \
    --to=ruby-core@ruby-lang.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).