Should the coroipcc client library have matching sem_destroy in the
hdb_destructor for the corresponding sem_init calls in
coroipcc_service_ connect?
thanks,
dan
$ diff -c coroipcc.c coroipcc.c.orig
*** coroipcc.c 2010-06-25 16:54:43.000000000 -0700
--- coroipcc.c-1.2.5 2010-06-25 16:30:58.000000000 -0700
***************
*** 353,368 ****
void ipc_hdb_destructor (void *context ) {
struct ipc_instance *ipc_instance = (struct ipc_instance *)context;
- int rtn;
-
- #if _POSIX_THREAD_PROCESS_SHARED > 0
- rtn = sem_destroy (&ipc_instance->control_buffer->sem0);
- rtn = sem_destroy (&ipc_instance->control_buffer->sem1);
- rtn = sem_destroy (&ipc_instance->control_buffer->sem2);
- #endif
/*
* << 1 (or multiplied by 2) because this is a wrapped memory buffer
--- 353,358 ----
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais