something like this:
int sem = create_our_pollable_semaphore();
...
...
pollfd fds[xxx];
for(i=0; i < countof(fds); fds[i++].events = POLLIN|POLLOUT);
fds[0].fd = sem;
fds[1].fd = server_sock1;
fds[2].fd = cmd_sock2;
while ( poll(fds, countof(fds), -1) >= 0 )
...
Thank you in advance
Alex Riesen
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/