Skip to content

Commit

Permalink
- (stevesk) pty.c: HP-UX 10 and 11 don't define TIOCSCTTY. Add error…
Browse files Browse the repository at this point in the history
…() to

    failed ioctl(TIOCSCTTY) call.
  • Loading branch information
stevesk committed Nov 12, 2000
1 parent 8187f4f commit 0cfade0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 2 additions & 0 deletions ChangeLog
Expand Up @@ -2,6 +2,8 @@
- (bal) SCO Patch to add needed libraries for configure.in. Patch by
Phillips Porch <root@theporch.com>
- (bal) IRIX patch to adding Job Limits. Patch by Denis Parker <dcp@sgi.com>
- (stevesk) pty.c: HP-UX 10 and 11 don't define TIOCSCTTY. Add error() to
failed ioctl(TIOCSCTTY) call.

20001111
- (djm) Added /etc/primes for kex DH group neg, fixup Makefile.in and
Expand Down
8 changes: 2 additions & 6 deletions pty.c
Expand Up @@ -238,12 +238,8 @@ pty_make_controlling_tty(int *ttyfd, const char *ttyname)
/* Make it our controlling tty. */
#ifdef TIOCSCTTY
debug("Setting controlling tty using TIOCSCTTY.");
/*
* We ignore errors from this, because HPSUX defines TIOCSCTTY, but
* returns EINVAL with these arguments, and there is absolutely no
* documentation.
*/
ioctl(*ttyfd, TIOCSCTTY, NULL);
if (ioctl(*ttyfd, TIOCSCTTY, NULL) < 0)
error("ioctl(TIOCSCTTY): %.100s", strerror(errno));
#endif /* TIOCSCTTY */
#ifdef HAVE_NEWS4
if (setpgrp(0,0) < 0)
Expand Down

0 comments on commit 0cfade0

Please sign in to comment.