tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: getnameinfo(3) thread-safety
On Aug 14, 10:44pm, naruse%airemix.jp@localhost ("NARUSE, Yui") wrote:
-- Subject: Re: getnameinfo(3) thread-safety
| Hi,
|
| 2013/8/14 Christos Zoulas <christos%astron.com@localhost>:
| > In article <1l7ljcq.aabx667531krM%manu%netbsd.org@localhost>,
| > Emmanuel Dreyfus <manu%netbsd.org@localhost> wrote:
| >>Hi
| >>
| >>getnameinfo(3) man page says the function is not thread safe. What is
| >>the preferred method for getting the name for an address stored in a
| >>sockaddr_t, in a threaded program?
| >
| > Ours is, IIRC. We could remove the restriction from the man page.
|
| I reported that getnameinfo(3) is not thread safe as lib/46454.
| http://gnats.netbsd.org/46454
|
| The work arround patch is following, but the rwlock may cause speed down.
Yes, this sucks. I will fix it differently.
christos
Home |
Main Index |
Thread Index |
Old Index