Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > berkeley db

Reply
Thread Tools

berkeley db

 
 
Wojtek
Guest
Posts: n/a
 
      12-17-2004
Hi I'm writing multiprocess server which has to gather information from
the clients and store it to berkeley db. The problem is that BerkeleyDB
adds entries to the base only if they are added from the same proces
within was created all is ok. But when I fork() it the code runs without
any error, but DB adds nothnig . How can I solve this problem.

Thank you in advance


--
Wojtek W.
GG: 2182255
Linux-User #341555

 
Reply With Quote
 
 
 
 
Joona I Palaste
Guest
Posts: n/a
 
      12-17-2004
Wojtek <adun_wywalto_@o2.pl> scribbled the following:
> Hi I'm writing multiprocess server which has to gather information from
> the clients and store it to berkeley db. The problem is that BerkeleyDB
> adds entries to the base only if they are added from the same proces
> within was created all is ok. But when I fork() it the code runs without
> any error, but DB adds nothnig . How can I solve this problem.


This has nothing to do with C. Please ask in comp.unix.programmer or a
system-specific newsgroup.

--
/-- Joona Palaste () ------------- Finland --------\
\-------------------------------------------------------- rules! --------/
"No, Maggie, not Aztec, Olmec! Ol-mec!"
- Lisa Simpson
 
Reply With Quote
 
 
 
 
bostic@sleepycat.com
Guest
Posts: n/a
 
      12-17-2004
Berkeley DB handles cannot be shared across a fork, each forked child
should open the DB database environment separately. (You'll almost
certainly need a database environment in the case of a multi-process
application.)

Regards,
--keith

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Keith Bostic
Sleepycat Software Inc. keithbosticim (ymsgid)
118 Tower Rd. +1-781-259-3139
Lincoln, MA 01773 http://www.sleepycat.com

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DVD Verdict reviews: THE SQUID AND THE WHALE, THE BUSBY BERKELEY COLLECTION, and more! DVD Verdict DVD Video 0 04-10-2006 08:23 AM
New releases: Busby Berkeley, Six Feet Under & Prime: Updated complete downloadable R1 DVD DB & info lists Doug MacLean DVD Video 0 12-20-2005 05:56 AM
[ANNOUNCE] Berkeley DB XML 2.1.7 Gregory Burd XML 0 05-03-2005 01:23 PM
[ANNOUNCE] Berkeley DB XML 2.0.7 Gregory Burd XML 0 12-14-2004 05:17 PM
how can I use Berkeley DB XML 1.1.0 from Python 2.3 (on Windows) ? Harald Massa Python 0 09-16-2003 04:27 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57