Messages in this thread | | | From | (Alan Cox) | Subject | Re: Out of ptys | Date | Tue, 25 Aug 1998 19:16:12 +0100 (BST) |
| |
> 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
| |