Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yeah if you chdir() in a multithreaded program, all cwd-relative file accesses in other threads are fucked.

As well as absolute paths, it’s ok to work with descriptor-relative paths using openat() and friends.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: