libdill icon indicating copy to clipboard operation
libdill copied to clipboard

Examples using ipc_close should use deadline

Open suvarchal opened this issue 3 years ago • 1 comments

Examples (at least) listed below should end with ipc_close(s, -1); http://libdill.org/ipc_connect.html http://libdill.org/ipc_close.html

example fix (just last line)

int s = ipc_connect("/tmp/test.ipc", -1);
bsend(s, "ABC", 3, -1);
char buf[3];
brecv(s, buf, sizeof(buf), -1);
ipc_close(s, -1);

suvarchal avatar Jan 02 '22 01:01 suvarchal