This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFC] Add pthread_detach_pwd call.


Hi,

One of problematic parts of threading is working directory. As it is
global a changing it is problematic. Particulary when there is a third
party library that does this without multithreading in mind.

I got idea how users could fix this without much effort. It is that we
implement a pthread_detach_pwd call which will cause all subsequent
queries/changes in thread be resolved by using thread local variable.

Possible disadvantage is that this would make open/fopen more complicated.

Comments?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]