News for hackers. Stuff that matters.
Re:“POSIX advisory locks are broken by design” by dfox on Wednesday July 25, 2018 @07:47AM (#17608518)
IEEE Std 1003.1-2017 actually specifies chdir() as thread-safe (obviously in the sense that it is atomic but influences all process' threads).

It strikes me as particularly weird as there are notionally POSIX-conformant OSes that implement it in a way that is not atomic.

Re:“POSIX advisory locks are broken by design” by JdeBP on Wednesday July 25, 2018 @12:06PM (#17610315)
Thread safety is not the issue. The issue is that multiple threads may want multiple different working directories simultaneously, for different work items. But there is one working directory for the process. This problem is partly alleviated by the ...at() family of system calls, of course.