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

Function child

ccan/ccan/fdpass/test/run.c:14–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12#include <assert.h>
13
14static void child(int sockfd)
15{
16 char c;
17 int newfd = fdpass_recv(sockfd);
18 assert(newfd >= 0);
19 assert(read(newfd, &c, 1) == 1);
20 assert(c == 0x77);
21 exit(0);
22}
23
24static void child_nofd(int sockfd)
25{

Callers 1

mainFunction · 0.70

Calls 1

fdpass_recvFunction · 0.85

Tested by

no test coverage detected