Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - _res is not supported for multi-threaded programs: (2 Items)
   
_res is not supported for multi-threaded programs  
We encountered a bug when running io-pkt with j9. We get the message "_res is not supported for multi-threaded programs"
 when we try and start one of our java apps. I did a search on the string of our binaries and found that the message is 
in libsocket.so. However, when I searched the foundry repository in socket, I couldn't find the message. We do not get 
this message when we run with io-net. Anybody have any insight as to what the message means or what function is 
generating it?

Thx,
Bill
Re: _res is not supported for multi-threaded programs  
On Fri, Oct 24, 2008 at 09:37:15AM -0400, William Smith wrote:
> We encountered a bug when running io-pkt with j9. We get the message "_res is not supported for multi-threaded 
programs" when we try and start one of our java apps. I did a search on the string of our binaries and found that the 
message is in libsocket.so. However, when I searched the foundry repository in socket, I couldn't find the message. We 
do not get this message when we run with io-net. Anybody have any insight as to what the message means or what function 
is generating it?

It's from __res_state() in lib/socket/resolve/res_state.c.
This was part of the work to make the resolving funcs
thread safe.  In a multi threaded app there's no longer
a global struct __res_state.

-seanb