Messages in this thread | | | From | (Alan Cox) | Subject | Re: Out of ptys | Date | Tue, 25 Aug 1998 18:09:10 +0100 (BST) |
| |
> > > > > ioctl(1, TCGETS, 0xbffff1dc) = -1 EINVAL (Invalid argument) > > > > > ioctl(2, TCGETS, 0xbffff1d0) = -1 EINVAL (Invalid argument) > > Don't you love the way these replies start! Always with "wrong" or "no". > The "program" to which you refer is telnetd. The ioctls failed because > there were no open fds 1 or 2, yet an open returned 3. Telnetd failed > because this was unexpected behavior.
As it happens the "wrong" is precisely the correct answer.
Open returned 3 because fd 1 and 2 are open. The ioctls you quote prove that to be true. The error would be different if the the file handle was closed. (EBADF)
Alan
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html
| |