s!/etc/slackware-release!/etc/slackware-version! (reported by bubulak)
[util-vserver.git] / util-vserver / src / vshelper-sync.c
index 28d14d0..b09794e 100644 (file)
@@ -74,7 +74,8 @@ int main(int argc, char *argv[])
     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];
@@ -84,7 +85,7 @@ int main(int argc, char *argv[])
     FD_ZERO(&fds);
     FD_SET(fd, &fds);
 
-#ifndef __linux
+#ifndef __linux__
 #  error vshelper relies on the Linux select() behavior (timeout holds remaining time)
 #endif