| 12 | #include <assert.h> |
| 13 | |
| 14 | static 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 | |
| 24 | static void child_nofd(int sockfd) |
| 25 | { |