- (stevesk) pty.c: HP-UX 10 and 11 don't define TIOCSCTTY. Add error() to
failed ioctl(TIOCSCTTY) call.
This commit is contained in:
parent
980754ce49
commit
6c0d627e86
|
@ -2,6 +2,8 @@
|
||||||
- (bal) SCO Patch to add needed libraries for configure.in. Patch by
|
- (bal) SCO Patch to add needed libraries for configure.in. Patch by
|
||||||
Phillips Porch <root@theporch.com>
|
Phillips Porch <root@theporch.com>
|
||||||
- (bal) IRIX patch to adding Job Limits. Patch by Denis Parker <dcp@sgi.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
|
20001111
|
||||||
- (djm) Added /etc/primes for kex DH group neg, fixup Makefile.in and
|
- (djm) Added /etc/primes for kex DH group neg, fixup Makefile.in and
|
||||||
|
|
8
pty.c
8
pty.c
|
@ -238,12 +238,8 @@ pty_make_controlling_tty(int *ttyfd, const char *ttyname)
|
||||||
/* Make it our controlling tty. */
|
/* Make it our controlling tty. */
|
||||||
#ifdef TIOCSCTTY
|
#ifdef TIOCSCTTY
|
||||||
debug("Setting controlling tty using TIOCSCTTY.");
|
debug("Setting controlling tty using TIOCSCTTY.");
|
||||||
/*
|
if (ioctl(*ttyfd, TIOCSCTTY, NULL) < 0)
|
||||||
* We ignore errors from this, because HPSUX defines TIOCSCTTY, but
|
error("ioctl(TIOCSCTTY): %.100s", strerror(errno));
|
||||||
* returns EINVAL with these arguments, and there is absolutely no
|
|
||||||
* documentation.
|
|
||||||
*/
|
|
||||||
ioctl(*ttyfd, TIOCSCTTY, NULL);
|
|
||||||
#endif /* TIOCSCTTY */
|
#endif /* TIOCSCTTY */
|
||||||
#ifdef HAVE_NEWS4
|
#ifdef HAVE_NEWS4
|
||||||
if (setpgrp(0,0) < 0)
|
if (setpgrp(0,0) < 0)
|
||||||
|
|
Loading…
Reference in New Issue