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)
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 e3027ca2e..28d0e310c 100644
--- a/sshpty.c
+++ b/sshpty.c
@@ -162,7 +162,7 @@ pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, int namebuflen)
162 } 162 }
163 return 1; 163 return 1;
164#else /* HAVE_DEV_PTS_AND_PTC */ 164#else /* HAVE_DEV_PTS_AND_PTC */
165#if defined(_CRAY) && !defined(_CRAYSV2) 165#ifdef _UNICOS
166 char buf[64]; 166 char buf[64];
167 int i; 167 int i;
168 int highpty; 168 int highpty;
@@ -268,7 +268,7 @@ pty_make_controlling_tty(int *ttyfd, const char *ttyname)
268 void *old; 268 void *old;
269#endif /* USE_VHANGUP */ 269#endif /* USE_VHANGUP */
270 270
271#if defined(_CRAY) && !defined(_CRAYSV2) 271#ifdef _UNICOS
272 if (setsid() < 0) 272 if (setsid() < 0)
273 error("setsid: %.100s", strerror(errno)); 273 error("setsid: %.100s", strerror(errno));
274 274
@@ -290,7 +290,7 @@ pty_make_controlling_tty(int *ttyfd, const char *ttyname)
290 error("%.100s: %.100s", ttyname, strerror(errno)); 290 error("%.100s: %.100s", ttyname, strerror(errno));
291 close(*ttyfd); 291 close(*ttyfd);
292 *ttyfd = fd; 292 *ttyfd = fd;
293#else /* _CRAY */ 293#else /* _UNICOS */
294 294
295 /* First disconnect from the old controlling tty. */ 295 /* First disconnect from the old controlling tty. */
296#ifdef TIOCNOTTY 296#ifdef TIOCNOTTY
@@ -345,7 +345,7 @@ pty_make_controlling_tty(int *ttyfd, const char *ttyname)
345 strerror(errno)); 345 strerror(errno));
346 else 346 else
347 close(fd); 347 close(fd);
348#endif /* _CRAY */ 348#endif /* _UNICOS */
349} 349}
350 350
351/* Changes the window size associated with the pty. */ 351/* Changes the window size associated with the pty. */