Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - dataserver bug: (1 Item)
   
dataserver bug  
I am currently develop software on PPC8313 BSP 6.4.0 release:
ds version as below:
NAME=ds
DESCRIPTION=Tiny Database Server for use with slinger
DATE=2008/10/21-00:19:18-EDT
STATE=Stable
HOST=trunkbuild
USER=builder
VERSION=6.4.0

I am trying to use ds_create( ds_t dsdes, const char * variable_name,   0,              struct sigevent * sigevent ); to
 check if the process is runing to avoid runing one process muiltiable times.

on each of the main, first thing is run:
ds_create( dsdes, process_name,   0,  0 ); 
if EEXIST then I can detect the process is running.however, there seems problems with it.

Process_A: ds_create( dsdes, Process_A,   0,  0 ); 
Process_B: ds_create( dsdes, Process_B,   0,  0 ); 

if I running Process_A, and run Process_A again, the second one will detect the process is running with out any problem.


however, if I run Process_A, and then Process_B, and then Process_B, the second run of Process_B will not detect 
Process_B have already been run.

if I do some other operation, it may be able to detect.