Comment

Comment by chrismonsanto

Working directory can be changed on a per-thread basis on Mac with pthread_chdir_np, and on Linux you can create a thread with the clone syscall and without the CLONE_FS flag to avoid sharing working directory with the rest of the process. I don't know about Windows.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton