diff options
author | Darren Tucker <dtucker@dtucker.net> | 2018-02-12 23:10:46 +0100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2018-02-15 10:04:02 +0100 |
commit | ddc0f3814881ea279a6b6d4d98e03afc60ae1ed7 (patch) | |
tree | d09efd846cd29f2dfeb0acd04756294e4f6761c9 /sshpty.c | |
parent | Retpoline linker flag only needed for linking. (diff) | |
download | openssh-ddc0f3814881ea279a6b6d4d98e03afc60ae1ed7.tar.xz openssh-ddc0f3814881ea279a6b6d4d98e03afc60ae1ed7.zip |
Remove UNICOS support.
The code required to support it is quite invasive to the mainline
code that is synced with upstream and is an ongoing maintenance burden.
Both the hardware and software are literal museum pieces these days and
we could not find anyone still running OpenSSH on one.
Diffstat (limited to 'sshpty.c')
-rw-r--r-- | sshpty.c | 25 |
1 files changed, 0 insertions, 25 deletions
@@ -100,30 +100,6 @@ pty_make_controlling_tty(int *ttyfd, const char *tty) { int fd; -#ifdef _UNICOS - if (setsid() < 0) - error("setsid: %.100s", strerror(errno)); - - fd = open(tty, O_RDWR|O_NOCTTY); - if (fd != -1) { - signal(SIGHUP, SIG_IGN); - ioctl(fd, TCVHUP, (char *)NULL); - signal(SIGHUP, SIG_DFL); - setpgid(0, 0); - close(fd); - } else { - error("Failed to disconnect from controlling tty."); - } - - debug("Setting controlling tty using TCSETCTTY."); - ioctl(*ttyfd, TCSETCTTY, NULL); - fd = open("/dev/tty", O_RDWR); - if (fd < 0) - error("%.100s: %.100s", tty, strerror(errno)); - close(*ttyfd); - *ttyfd = fd; -#else /* _UNICOS */ - /* First disconnect from the old controlling tty. */ #ifdef TIOCNOTTY fd = open(_PATH_TTY, O_RDWR | O_NOCTTY); @@ -167,7 +143,6 @@ pty_make_controlling_tty(int *ttyfd, const char *tty) strerror(errno)); else close(fd); -#endif /* _UNICOS */ } /* Changes the window size associated with the pty. */ |