tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: suenv



On Oct 24,  6:35am, manu%netbsd.org@localhost (Emmanuel Dreyfus) wrote:
-- Subject: Re: suenv

| Christos Zoulas <christos%astron.com@localhost> wrote:
| 
| > The threaded/non-threaded case is a particularly nasty
| > example, where a program might assume that it can use static storage
| > and non-threaded interfaces (res_foo() instead of res_nfoo(),
| > getdbfoo() instead of getdbfoo_r()) and then suddenly it finds
| > itself in a threaded environment and potential heisen bugs.
| 
| Right, I see the risk here. But that just suggest that we should use
| thread-safe API everywhere. 
| 
| Anyway, a deepre look at PCSC-lite shows that despite pthread_create
| being referenced libpcsclite.so, it is does not seems to be really
| called. Its presence seems to be the consequence of code sharing between
| libpcsclite.so and pcscd.

You could make it weak...

| I will try to patch so that libpcsclite.so does not use -lpthread
| anymore, but even if it works, that patch will be hard to sell upstream.

christos


Home | Main Index | Thread Index | Old Index