[omniORB] ORB_init after fork() no worky?

Christof Meerwald cmeerw@web.de
Wed, 20 Feb 2002 20:13:04 +0100


On Wed, 20 Feb 2002 02:59:29 -0800, Dan Kegel wrote:
> Problem:
>   ORB_init() hangs if you fork first.

This one might be related to a similar problem which came up on this mailing
list nearly 2 years ago, see
http://www.uk.research.att.com/omniORB/archives/2000-03/0232.html


[...]
> 2. compile (your commandline will differ):
> 
> $ g++ -g -D__x86__ -I/opt/omniorb3/native/include
> -L/opt/omniorb3/native/lib/i586_linux_2.0_glibc2.1 -lomniORB3 -ltcpwrapGK
> test.cc

You have to explicitely link with libpthread on Linux, it's best to use
"-pthread" on the gcc command line (which AFAIK will also define
_REENTRANT).


bye, Christof

-- 
http://cmeerw.org                                 JID: cmeerw@jabber.at
mailto cmeerw at web.de