diff options
author | Kevin Steves <stevesk@pobox.com> | 2000-11-12 09:22:29 +0000 |
---|---|---|
committer | Kevin Steves <stevesk@pobox.com> | 2000-11-12 09:22:29 +0000 |
commit | 6c0d627e86a455dbf46128eb31397824a907e3d4 (patch) | |
tree | ab473760984d2ae994c127a87f3caf7d1bf562a8 /pty.c | |
parent | 980754ce49de5fe7b8a61fceb5c31c29beeea1d3 (diff) |
- (stevesk) pty.c: HP-UX 10 and 11 don't define TIOCSCTTY. Add error() to
failed ioctl(TIOCSCTTY) call.
Diffstat (limited to 'pty.c')
-rw-r--r-- | pty.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -238,12 +238,8 @@ pty_make_controlling_tty(int *ttyfd, const char *ttyname) | |||
238 | /* Make it our controlling tty. */ | 238 | /* Make it our controlling tty. */ |
239 | #ifdef TIOCSCTTY | 239 | #ifdef TIOCSCTTY |
240 | debug("Setting controlling tty using TIOCSCTTY."); | 240 | debug("Setting controlling tty using TIOCSCTTY."); |
241 | /* | 241 | if (ioctl(*ttyfd, TIOCSCTTY, NULL) < 0) |
242 | * We ignore errors from this, because HPSUX defines TIOCSCTTY, but | 242 | error("ioctl(TIOCSCTTY): %.100s", strerror(errno)); |
243 | * returns EINVAL with these arguments, and there is absolutely no | ||
244 | * documentation. | ||
245 | */ | ||
246 | ioctl(*ttyfd, TIOCSCTTY, NULL); | ||
247 | #endif /* TIOCSCTTY */ | 243 | #endif /* TIOCSCTTY */ |
248 | #ifdef HAVE_NEWS4 | 244 | #ifdef HAVE_NEWS4 |
249 | if (setpgrp(0,0) < 0) | 245 | if (setpgrp(0,0) < 0) |