List:Internals« Previous MessageNext Message »
From:Konstantin Osipov Date:June 28 2007 1:20am
Subject:Re: Is mysql_real_connect thread safe?
View as plain text  
* Dhammika Pathirana <dhammika@stripped> [07/06/27 21:33]:
> I'm working on a multi-threaded daemon written in C/C++ for FreeBSD.
> This daemon uses libmysqlclient_r.so.15 to query a mysql db. Both
> libmysqlclient_r and the daemon are compiled with -lpthread and all
> threads are initialized with mysql_init.
> If I startup this daemon process at system bootup (through rc.d) then
> I get the following core, but it seems to work fine if I start it
> manually (after system bootup). Would really appreciate any help on
> this.

Have you issued mysql_library_init() prior to starting any
threads?

-- 
-- Konstantin Osipov              Software Developer, Moscow, Russia
-- MySQL AB, www.mysql.com   The best DATABASE COMPANY in the GALAXY
Thread
Is mysql_real_connect thread safe?Dhammika Pathirana27 Jun
  • Re: Is mysql_real_connect thread safe?Guilhem Bichot27 Jun
    • Re: Is mysql_real_connect thread safe?Dhammika Pathirana28 Jun
  • Re: Is mysql_real_connect thread safe?Konstantin Osipov28 Jun