Cray fixes (bug 367) based on patch from Wendy Palm @ cray.
This does not include the deattack.c fixes.
diff --git a/sshpty.c b/sshpty.c
index e3027ca..28d0e31 100644
--- a/sshpty.c
+++ b/sshpty.c
@@ -162,7 +162,7 @@
}
return 1;
#else /* HAVE_DEV_PTS_AND_PTC */
-#if defined(_CRAY) && !defined(_CRAYSV2)
+#ifdef _UNICOS
char buf[64];
int i;
int highpty;
@@ -268,7 +268,7 @@
void *old;
#endif /* USE_VHANGUP */
-#if defined(_CRAY) && !defined(_CRAYSV2)
+#ifdef _UNICOS
if (setsid() < 0)
error("setsid: %.100s", strerror(errno));
@@ -290,7 +290,7 @@
error("%.100s: %.100s", ttyname, strerror(errno));
close(*ttyfd);
*ttyfd = fd;
-#else /* _CRAY */
+#else /* _UNICOS */
/* First disconnect from the old controlling tty. */
#ifdef TIOCNOTTY
@@ -345,7 +345,7 @@
strerror(errno));
else
close(fd);
-#endif /* _CRAY */
+#endif /* _UNICOS */
}
/* Changes the window size associated with the pty. */