Are os. Chdir
, os.Setuid
and os.Setgid
thread-safe in Go?
In otherwords, if I do a os.Chdir
(or the other two functions) in two different goroutines running in parallel, is it going change directory for the working goroutine or the whole process (which can cause problems)?
I couldn't find any information in the documentation.