Messages in this thread | | | From | (Alan Cox) | Subject | Re: Out of ptys | Date | Wed, 26 Aug 1998 11:55:10 +0100 (BST) |
| |
> before spawing a child, was creating children such as telnet, etc., that > could continue to write to "stdout" after the link was disconnected and > the original socket closed.
glibc gets this right too
#include <stdio.h>
int main(int argc, char *argv[]) { close(1); if(printf("Hello")==-1) perror("printf"); if(fflush(stdout)==-1) perror("fflush"); }
% ./doh fflush: Bad file descriptor
- 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
| |