From: Eric Wong Date: 2020-09-26T21:29:18+00:00 Subject: [ruby-core:100183] Re: [Ruby master Bug#15661] Disallow concurrent Dir.chdir with block 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. Unsubscribe: