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
> As previously reported to the glibc folks, glibc allows a write to
> a closed file descriptor. It was my understanding that this was

void main()
{
if(write(34,"Hello",5)!=5)
perror("eek");
}

./a.out
eek: Bad file descriptor

Glibc appears to work beautifully. And in fact there isnt actually
any glibc code really wrapping write() that would allow a bug to occur.

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.081 / U:0.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site