If I look at the example in the doc, the client allocates a sigevent
structure, initialize it and send it to the server.
But in fact, the sigevent isn’t really usefull for the client.
Should it be possible to only send the pulse code value, optionally the
value, and let the server allocating the sigevent structure and filling
it like that:
…
MsgInfo(ctp->rcvid, &msg_info); // necessary to know who eventually
wants to lock a record
event = malloc(sizeof(struct sigevent));
SIGEV_PULSE_INIT( &event, msg_info.coid, msg_info.priority,
sended_pulse_code, sended_value);
…
If I ask the question it’s because that doesn’t work .
Maybe I get confused with the connection id I pick up in the msg_info
structure.
What’s wrong?
Thanks,
Alain.