lkml.org 
[lkml]   [1998]   [Aug]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Out of ptys
Date
> > > > > 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

\
 
 \ /
  Last update: 2005-03-22 13:44    [W:0.058 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site