MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / ipc_recv_sync_reply

Function ipc_recv_sync_reply

ipc.c:280–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278}
279
280int ipc_recv_sync_reply(void **param)
281{
282 void *ret;
283 int n;
284
285again:
286 n = read(IPC_FD_SYNC_READ_SELF, &ret, sizeof(ret));
287 if (n < sizeof(*ret)) {
288 if (errno == EINTR)
289 goto again;
290 /* if we got here, it's definitely an error, because the socket is
291 * blocking, so we can't read partial messages */
292 LM_ERR("read failed:[%d] %s\n", errno, strerror(errno));
293 return -1;
294 }
295 *param = ret;
296 return 0;
297}
298
299int ipc_running_rpc_job;
300void ipc_handle_job(int fd)

Callers 2

tls_query_remoteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected