summaryrefslogtreecommitdiff
path: root/sshpty.c
diff options
context:
space:
mode:
authorTim Rice <tim@multitalents.net>2002-09-25 17:38:46 -0700
committerTim Rice <tim@multitalents.net>2002-09-25 17:38:46 -0700
commit81ed518b9b888502cc57b23c02c47634ca508748 (patch)
treec5e3572dcc8dabd07784d1686d67e560e1685a6f /sshpty.c
parent164725f40ecda144de706c94778e47dc86ae9257 (diff)
downloadopenssh-git-81ed518b9b888502cc57b23c02c47634ca508748.tar.gz
Cray fixes (bug 367) based on patch from Wendy Palm @ cray.
This does not include the deattack.c fixes.
Diffstat (limited to 'sshpty.c')
-rw-r--r--sshpty.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sshpty.c b/sshpty.c
index e3027ca2..28d0e310 100644
--- a/sshpty.c
+++ b/sshpty.c
@@ -162,7 +162,7 @@ pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, int namebuflen)
}
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 @@ pty_make_controlling_tty(int *ttyfd, const char *ttyname)
void *old;
#endif /* USE_VHANGUP */
-#if defined(_CRAY) && !defined(_CRAYSV2)
+#ifdef _UNICOS
if (setsid() < 0)
error("setsid: %.100s", strerror(errno));
@@ -290,7 +290,7 @@ pty_make_controlling_tty(int *ttyfd, const char *ttyname)
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 @@ pty_make_controlling_tty(int *ttyfd, const char *ttyname)
strerror(errno));
else
close(fd);
-#endif /* _CRAY */
+#endif /* _UNICOS */
}
/* Changes the window size associated with the pty. */