version 1.18, 2000/12/13 06:36:05 |
version 1.19, 2000/12/20 20:00:34 |
|
|
/* 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 */ |
fd = open(ttyname, O_RDWR); |
fd = open(ttyname, O_RDWR); |
if (fd < 0) |
if (fd < 0) |