We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53a9389 commit 028bcd2Copy full SHA for 028bcd2
src/syscall/pwd_plan9.go
@@ -29,6 +29,8 @@ var (
29
// rescheduling on a different thread (potentially with a different
30
// working directory) before the syscall is executed.
31
func Fixwd() {
32
+ runtime.LockOSThread()
33
+ defer runtime.UnlockOSThread()
34
wdmu.Lock()
35
defer wdmu.Unlock()
36
fixwdLocked()
@@ -72,6 +74,8 @@ func getwd() (wd string, err error) {
72
74
}
73
75
76
func Getwd() (wd string, err error) {
77
78
79
80
81
0 commit comments