This commit is contained in:
angt
2015-10-26 10:45:09 +01:00
parent 2eece5ab15
commit b82f2fd0da

View File

@@ -377,12 +377,12 @@ int main (int argc, char **argv)
printf("running...\n");
while (running) {
struct pollfd fds[] = {
{ .fd = tun.fd, .events = POLLIN },
{ .fd = sock.fd, .events = POLLIN },
};
while (running) {
if (poll(fds, COUNT(fds), -1)==-1 && errno!=EINTR) {
perror("poll");
return 1;