<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Do not close stderr</title>
	<atom:link href="http://bashcurescancer.com/do-not-close-stderr.html/feed" rel="self" type="application/rss+xml" />
	<link>http://bashcurescancer.com/do-not-close-stderr.html</link>
	<description>Learn the UNIX/Linux command line</description>
	<lastBuildDate>Mon, 06 Jun 2011 01:35:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: The best in command line xml: XMLStarlet</title>
		<link>http://bashcurescancer.com/do-not-close-stderr.html/comment-page-1#comment-13129</link>
		<dc:creator>The best in command line xml: XMLStarlet</dc:creator>
		<pubDate>Tue, 24 Jun 2008 04:33:23 +0000</pubDate>
		<guid isPermaLink="false">http://bashcurescancer.com/?p=148#comment-13129</guid>
		<description>[...] Do not close stderr [...]</description>
		<content:encoded><![CDATA[<p>[...] Do not close stderr [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Noname</title>
		<link>http://bashcurescancer.com/do-not-close-stderr.html/comment-page-1#comment-6686</link>
		<dc:creator>Noname</dc:creator>
		<pubDate>Fri, 25 Apr 2008 20:22:23 +0000</pubDate>
		<guid isPermaLink="false">http://bashcurescancer.com/?p=148#comment-6686</guid>
		<description>Which has started the whole ordeal as an uglu and a bad thing ... :)</description>
		<content:encoded><![CDATA[<p>Which has started the whole ordeal as an uglu and a bad thing &#8230; <img src='http://bashcurescancer.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brock Noland</title>
		<link>http://bashcurescancer.com/do-not-close-stderr.html/comment-page-1#comment-6608</link>
		<dc:creator>Brock Noland</dc:creator>
		<pubDate>Thu, 24 Apr 2008 13:07:19 +0000</pubDate>
		<guid isPermaLink="false">http://bashcurescancer.com/?p=148#comment-6608</guid>
		<description>Yep.</description>
		<content:encoded><![CDATA[<p>Yep.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Noname</title>
		<link>http://bashcurescancer.com/do-not-close-stderr.html/comment-page-1#comment-6602</link>
		<dc:creator>Noname</dc:creator>
		<pubDate>Thu, 24 Apr 2008 09:55:56 +0000</pubDate>
		<guid isPermaLink="false">http://bashcurescancer.com/?p=148#comment-6602</guid>
		<description>Than the logical solution is 2&gt;/dev/null ?</description>
		<content:encoded><![CDATA[<p>Than the logical solution is 2&gt;/dev/null ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brock Noland</title>
		<link>http://bashcurescancer.com/do-not-close-stderr.html/comment-page-1#comment-6569</link>
		<dc:creator>Brock Noland</dc:creator>
		<pubDate>Wed, 23 Apr 2008 16:07:37 +0000</pubDate>
		<guid isPermaLink="false">http://bashcurescancer.com/?p=148#comment-6569</guid>
		<description>&lt;b&gt;Naveed&lt;/b&gt;: &lt;i&gt;Is that what happened?&lt;/i&gt;

Yep.

&lt;b&gt;Brendan Miller&lt;/b&gt;: &lt;i&gt;Cool, but since you’re using ansi c streams as opposed to unix file io isn’t this a bug in glibc? Shouldn’t glibc be checking to see if the file descriptor is open before fdopening file descriptor 2?&lt;/i&gt;

I am 99.9% sure UNIX file io would do the same thing.</description>
		<content:encoded><![CDATA[<p><b>Naveed</b>: <i>Is that what happened?</i></p>
<p>Yep.</p>
<p><b>Brendan Miller</b>: <i>Cool, but since you’re using ansi c streams as opposed to unix file io isn’t this a bug in glibc? Shouldn’t glibc be checking to see if the file descriptor is open before fdopening file descriptor 2?</i></p>
<p>I am 99.9% sure UNIX file io would do the same thing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brendan Miller</title>
		<link>http://bashcurescancer.com/do-not-close-stderr.html/comment-page-1#comment-6546</link>
		<dc:creator>Brendan Miller</dc:creator>
		<pubDate>Wed, 23 Apr 2008 08:15:52 +0000</pubDate>
		<guid isPermaLink="false">http://bashcurescancer.com/?p=148#comment-6546</guid>
		<description>Cool, but since you&#039;re using ansi c streams as opposed to unix file io isn&#039;t this a bug in glibc? Shouldn&#039;t glibc be checking to see if the file descriptor is open before fdopening file descriptor 2?</description>
		<content:encoded><![CDATA[<p>Cool, but since you&#8217;re using ansi c streams as opposed to unix file io isn&#8217;t this a bug in glibc? Shouldn&#8217;t glibc be checking to see if the file descriptor is open before fdopening file descriptor 2?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: forcey</title>
		<link>http://bashcurescancer.com/do-not-close-stderr.html/comment-page-1#comment-6545</link>
		<dc:creator>forcey</dc:creator>
		<pubDate>Wed, 23 Apr 2008 07:22:41 +0000</pubDate>
		<guid isPermaLink="false">http://bashcurescancer.com/?p=148#comment-6545</guid>
		<description>That&#039;s really the case. The reason is that stderr is opened with fd=2 by default, and if you close it, the file descriptor you open next will be 2. And if you or some external program you called by system() produces error message to &#039;stderr&#039; - your file would be corrupted. It actually happened to me. If you don&#039;t want your program to show error messages on the screen, please reopen stderr to somewhere else, rather than close it.</description>
		<content:encoded><![CDATA[<p>That&#8217;s really the case. The reason is that stderr is opened with fd=2 by default, and if you close it, the file descriptor you open next will be 2. And if you or some external program you called by system() produces error message to &#8216;stderr&#8217; &#8211; your file would be corrupted. It actually happened to me. If you don&#8217;t want your program to show error messages on the screen, please reopen stderr to somewhere else, rather than close it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Naveed</title>
		<link>http://bashcurescancer.com/do-not-close-stderr.html/comment-page-1#comment-6544</link>
		<dc:creator>Naveed</dc:creator>
		<pubDate>Wed, 23 Apr 2008 06:44:44 +0000</pubDate>
		<guid isPermaLink="false">http://bashcurescancer.com/?p=148#comment-6544</guid>
		<description>Whoa, it seems like stderr was redirected to stdout since stderr was closed.  Is that what happened?</description>
		<content:encoded><![CDATA[<p>Whoa, it seems like stderr was redirected to stdout since stderr was closed.  Is that what happened?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.206 seconds -->

