MCPcopy Create free account
hub / github.com/NVIDIA/cuda-samples / ipcCloseSocket

Function ipcCloseSocket

Common/helper_multiprocess.cpp:258–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256}
257
258int ipcCloseSocket(ipcHandle *handle) {
259 if (!handle) {
260 return -1;
261 }
262
263 if (handle->socketName) {
264 unlink(handle->socketName);
265 delete[] handle->socketName;
266 }
267 close(handle->socket);
268 delete handle;
269 return 0;
270}
271
272int ipcRecvShareableHandle(ipcHandle *handle, ShareableHandle *shHandle) {
273 struct msghdr msg = {0};

Callers 2

childProcessFunction · 0.85
parentProcessFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected