]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - unix/uxplink.c
Stop using MS-deprecated names stricmp and strnicmp.
[PuTTY.git] / unix / uxplink.c
index c59238a2c3f7af56ab0d8f4f77550d83bdc308b1..bf55ea73e93b875ebf262edcdad1b913869b3c93 100644 (file)
@@ -594,7 +594,9 @@ static void usage(void)
 
 static void version(void)
 {
-    printf("plink: %s\n", ver);
+    char *buildinfo_text = buildinfo("\n");
+    printf("plink: %s\n%s\n", ver, buildinfo_text);
+    sfree(buildinfo_text);
     exit(1);
 }
 
@@ -1122,6 +1124,9 @@ int main(int argc, char **argv)
             ret = select(maxfd, &rset, &wset, &xset, NULL);
         }
 
+        if (ret < 0 && errno == EINTR)
+            continue;
+
        if (ret < 0) {
            perror("select");
            exit(1);