Does the concept of the present working directory ever just start bugging you
-
Show this thread
-
IDK if this is a coincidence but I notice at least 3 of the 12 people who "liked" this tweet work in programming language implementation
2 replies 0 retweets 12 likesShow this thread -
Replying to @mcclure111
I had to implement cwd inheritance for NSTask and it was heinous. So my like at least was entirely selfishly motivated
2 replies 0 retweets 3 likes -
Replying to @Catfish_Man @mcclure111
It’s also one of the things you can’t control (portably) with posix_spawn and have to fall back to fork/exec for
1 reply 0 retweets 2 likes -
Replying to @jckarter @mcclure111
Exactly. Did you know xnu supports per-thread working directories but doesn’t expose the syscall in libsystem? “David why do you know th— oh. Oh no. What did you do”
3 replies 0 retweets 16 likes -
Replying to @Catfish_Man @mcclure111
I’d be surprised if you couldn’t manage this on Linux too with the wrong set of clone(2) flags
1 reply 0 retweets 0 likes
unshare(CLONE_FS) will make your CWD per-thread. :)
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.