This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug manual/670] system() documentation is incomplete (for standard streams)
- From: "vincent+libc at vinc17 dot org" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 15 Jan 2005 22:12:47 -0000
- Subject: [Bug manual/670] system() documentation is incomplete (for standard streams)
- References: <20050115212800.670.vincent+libc@vinc17.org>
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
------- Additional Comments From vincent+libc at vinc17 dot org 2005-01-15 22:12 -------
I disagree. In your example, you close stdout, so you get the expected behavior.
In my example, stdout is reopened by freopen(). So, this is different.
If, in your example, stdin is closed (as in my example before system() is
called), then there is no problem:
dixsept:~/wd/src> ./stdstreams <&-
OK 2
--
http://sources.redhat.com/bugzilla/show_bug.cgi?id=670
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.