while (1) { static int i = 1; eprintf("Target daemon with pid=%d started %d\n", getpid(), i++); sleep(1); }
static void event_loop(struct pollfd *poll_array){	int err;	while (1) {		static int i = 1;		eprintf("Target daemon with pid=%d started %d\n", getpid(), i++);		sleep(1);	}	while (1) {		if ((err = poll(poll_array, POLL_MAX, -1)) < 0) {			if (errno != EINTR) {				eprintf("%d %d\n", err, errno);				exit(1);			}			continue;		}		if (poll_array[POLL_NL].revents)			nl_event_handle(nl_fd);		if (poll_array[POLL_IPC].revents)			ipc_event_handle(ipc_fd);	}}