MCPcopy Create free account
hub / github.com/ElementsProject/lightning / parent

Function parent

ccan/ccan/fdpass/test/run.c:30–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30static void parent(int sockfd)
31{
32 int pfds[2];
33
34 ok1(pipe(pfds) == 0);
35 ok1(fdpass_send(sockfd, pfds[0]));
36 ok1(close(pfds[0]) == 0);
37 ok1(write(pfds[1], "\x77", 1) == 1);
38 ok1(close(pfds[1]) == 0);
39}
40
41int main(void)
42{

Callers 1

mainFunction · 0.70

Calls 1

fdpass_sendFunction · 0.85

Tested by

no test coverage detected