Hi Angus,
Had you come right with the problems you were having?
Please apply the following patch to the example test server:
--- bms.c.org 2010-12-14 08:40:23.000000000 +0100 +++ bms.c 2010-12-14 08:41:11.000000000 +0100 @@ -127,7 +127,7 @@ perror("qb_ipcs_event_send"); } } - return 0; + return -1; }
After recompile, the server continues to work - 'bmc' runs quite normal.
I thought it should be removed from the event loop if s1_msg_process_fn returns something < 0?
The second problem is a bit artificial - don't know if we really need to handle that. When you apply the following patch:
--- bms.c.org 2010-12-14 08:40:23.000000000 +0100 +++ bms.c 2010-12-14 08:49:13.000000000 +0100 @@ -113,6 +113,9 @@ response.size = sizeof(struct qb_ipc_response_header); response.id = 13; response.error = 0; + + return 0; + if (blocking) { res = qb_ipcs_response_send(c, &response, sizeof(response));
The client (bmc) hangs forever, Well, the server misbehaves and never send a response. I just thought a timeout on the client side would be a good idea?
- Dietmar