return EXIT_FAILURE;
}
- timeout.tv_sec = atoi(argv[idx+1]);
+ timeout.tv_sec = atoi(argv[idx+1]);
+ timeout.tv_usec = 0;
for (;;) {
char buf[512];
FD_ZERO(&fds);
FD_SET(fd, &fds);
-#ifndef __linux
+#ifndef __linux__
# error vshelper relies on the Linux select() behavior (timeout holds remaining time)
#endif