8 #include <sys/socket.h>
10 static int dispatch_daemon(int fd)
12 int epoll_fd = epoll_create(64);
13 struct epoll_event event;
16 while (read(fd, &v, sizeof(v)) ==
29 if (socketpair(AF_UNIX, SOCK_DGRAM, 0, fd) != 0) {
36 dispatch_daemon(fd[1]);
50 kill(-getpid(), SIGTERM);