<?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: Daemonize Anything</title>
	<atom:link href="http://blog.apokalyptik.com/2008/04/10/daemonize-anything/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.apokalyptik.com/2008/04/10/daemonize-anything/</link>
	<description>The random things that spew forth from my brain...</description>
	<lastBuildDate>Mon, 06 Sep 2010 01:58:58 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1-alpha</generator>
	<item>
		<title>By: NuAngel</title>
		<link>http://blog.apokalyptik.com/2008/04/10/daemonize-anything/comment-page-1/#comment-7768</link>
		<dc:creator>NuAngel</dc:creator>
		<pubDate>Mon, 21 Apr 2008 18:15:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.apokalyptik.com/?p=280#comment-7768</guid>
		<description>Hey man, it&#039;s Nu!!  Are the IRC&#039;s still in one piece anywhere?  Lookin&#039; to get ahold of a few people, Aly, EE, etc...

Stop by and leave a comment on my site (now: WinBreak.com) or just look me on on a messenger service:

AIM: RotatingFlavors
MSN: NuAngel@hotmail.com</description>
		<content:encoded><![CDATA[<p>Hey man, it&#8217;s Nu!!  Are the IRC&#8217;s still in one piece anywhere?  Lookin&#8217; to get ahold of a few people, Aly, EE, etc&#8230;</p>
<p>Stop by and leave a comment on my site (now: WinBreak.com) or just look me on on a messenger service:</p>
<p>AIM: RotatingFlavors<br />
MSN: <a href="mailto:NuAngel@hotmail.com">NuAngel@hotmail.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nikolay</title>
		<link>http://blog.apokalyptik.com/2008/04/10/daemonize-anything/comment-page-1/#comment-7737</link>
		<dc:creator>Nikolay</dc:creator>
		<pubDate>Fri, 11 Apr 2008 07:47:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.apokalyptik.com/?p=280#comment-7737</guid>
		<description>If you want to redirect all the output of the program to a file, you don&#039;t need to fork yet another process with &lt;code&gt;popen()&lt;/code&gt;:

freopen( &quot;/path/to/logfile&quot;, &quot;a&quot;, stdout);
freopen( &quot;/path/to/logfile&quot;, &quot;a&quot;, stderr);
exec[l&#124;v]p( command, ... );

Thus you can get both stdout and stderr, you don&#039;t spawn another process and you don&#039;t open and close the log file on every 1024 chars. Of course, the error checking was omitted :-)</description>
		<content:encoded><![CDATA[<p>If you want to redirect all the output of the program to a file, you don&#8217;t need to fork yet another process with <code>popen()</code>:</p>
<p>freopen( &#8220;/path/to/logfile&#8221;, &#8220;a&#8221;, stdout);<br />
freopen( &#8220;/path/to/logfile&#8221;, &#8220;a&#8221;, stderr);<br />
exec[l|v]p( command, &#8230; );</p>
<p>Thus you can get both stdout and stderr, you don&#8217;t spawn another process and you don&#8217;t open and close the log file on every 1024 chars. Of course, the error checking was omitted <img src='http://blog.apokalyptik.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
