<?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: 在Perl中如何派生多进程 &#8212; fork函数</title>
	<atom:link href="http://www.anysql.net/developer/perl_fork_process.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.anysql.net/developer/perl_fork_process.html</link>
	<description>Oracle DBA,MySQL DBA, 数据恢复, 数据迁移, 报表软件, 性能优化, 系统监控</description>
	<lastBuildDate>Wed, 17 Mar 2010 15:20:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: swgcxzys</title>
		<link>http://www.anysql.net/developer/perl_fork_process.html/comment-page-1#comment-736</link>
		<dc:creator>swgcxzys</dc:creator>
		<pubDate>Wed, 12 Mar 2008 21:37:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.anysql.net/wordpress/uncategorized/%e5%9c%a8perl%e4%b8%ad%e5%a6%82%e4%bd%95%e6%b4%be%e7%94%9f%e5%a4%9a%e8%bf%9b%e7%a8%8b-fork%e5%87%bd%e6%95%b0.html#comment-736</guid>
		<description>确实搞反了,不过写的不错
</description>
		<content:encoded><![CDATA[<p>确实搞反了,不过写的不错</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anysql</title>
		<link>http://www.anysql.net/developer/perl_fork_process.html/comment-page-1#comment-735</link>
		<dc:creator>anysql</dc:creator>
		<pubDate>Tue, 11 Dec 2007 02:08:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.anysql.net/wordpress/uncategorized/%e5%9c%a8perl%e4%b8%ad%e5%a6%82%e4%bd%95%e6%b4%be%e7%94%9f%e5%a4%9a%e8%bf%9b%e7%a8%8b-fork%e5%87%bd%e6%95%b0.html#comment-735</guid>
		<description>应当是搞反了吧,　这方面很不懂.
</description>
		<content:encoded><![CDATA[<p>应当是搞反了吧,　这方面很不懂.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tonywam</title>
		<link>http://www.anysql.net/developer/perl_fork_process.html/comment-page-1#comment-734</link>
		<dc:creator>tonywam</dc:creator>
		<pubDate>Tue, 11 Dec 2007 00:52:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.anysql.net/wordpress/uncategorized/%e5%9c%a8perl%e4%b8%ad%e5%a6%82%e4%bd%95%e6%b4%be%e7%94%9f%e5%a4%9a%e8%bf%9b%e7%a8%8b-fork%e5%87%bd%e6%95%b0.html#comment-734</guid>
		<description>大侠，我也觉得你把父子进程搞反了
</description>
		<content:encoded><![CDATA[<p>大侠，我也觉得你把父子进程搞反了</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bulletming</title>
		<link>http://www.anysql.net/developer/perl_fork_process.html/comment-page-1#comment-733</link>
		<dc:creator>bulletming</dc:creator>
		<pubDate>Fri, 27 Jul 2007 21:17:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.anysql.net/wordpress/uncategorized/%e5%9c%a8perl%e4%b8%ad%e5%a6%82%e4%bd%95%e6%b4%be%e7%94%9f%e5%a4%9a%e8%bf%9b%e7%a8%8b-fork%e5%87%bd%e6%95%b0.html#comment-733</guid>
		<description>大侠，我觉得你大概 父和子进程搞反了
fork    Does a fork(2) system call to create a new process running the same program at the same point.  It returns the
child pid to the parent process, 0 to the child process, or &quot;undef&quot; if the fork is unsuccessful.  File descrip-
tors (and sometimes locks on those descriptors) are shared, while everything else is copied.  On most systems
supporting fork(), great care has gone into making it extremely efficient (for example, using copy-on-write tech-
nology on data pages), making it the dominant paradigm for multitasking over the last few decades.
Beginning with v5.6.0, Perl will attempt to flush all files opened for output before forking the child process,
but this may not be supported on some platforms (see perlport).  To be safe, you may need to set $&#124; ($AUTOFLUSH
in English) or call the &quot;autoflush()&quot; method of &quot;IO::Handle&quot; on any open handles in order to avoid duplicate out-
put.
If you &quot;fork&quot; without ever waiting on your children, you will accumulate zombies.  On some systems, you can avoid
this by setting $SIG{CHLD} to &quot;IGNORE&quot;.  See also perlipc for more examples of forking and reaping moribund chil-
dren.
Note that if your forked child inherits system file descriptors like STDIN and STDOUT that are actually connected
by a pipe or socket, even if you exit, then the remote server (such as, say, a CGI script or a backgrounded job
launched from a remote shell) won&#039;t think you&#039;re done.  You should reopen those to /dev/null if it&#039;s any issue.
</description>
		<content:encoded><![CDATA[<p>大侠，我觉得你大概 父和子进程搞反了<br />
fork    Does a fork(2) system call to create a new process running the same program at the same point.  It returns the<br />
child pid to the parent process, 0 to the child process, or &#8220;undef&#8221; if the fork is unsuccessful.  File descrip-<br />
tors (and sometimes locks on those descriptors) are shared, while everything else is copied.  On most systems<br />
supporting fork(), great care has gone into making it extremely efficient (for example, using copy-on-write tech-<br />
nology on data pages), making it the dominant paradigm for multitasking over the last few decades.<br />
Beginning with v5.6.0, Perl will attempt to flush all files opened for output before forking the child process,<br />
but this may not be supported on some platforms (see perlport).  To be safe, you may need to set $| ($AUTOFLUSH<br />
in English) or call the &#8220;autoflush()&#8221; method of &#8220;IO::Handle&#8221; on any open handles in order to avoid duplicate out-<br />
put.<br />
If you &#8220;fork&#8221; without ever waiting on your children, you will accumulate zombies.  On some systems, you can avoid<br />
this by setting $SIG{CHLD} to &#8220;IGNORE&#8221;.  See also perlipc for more examples of forking and reaping moribund chil-<br />
dren.<br />
Note that if your forked child inherits system file descriptors like STDIN and STDOUT that are actually connected<br />
by a pipe or socket, even if you exit, then the remote server (such as, say, a CGI script or a backgrounded job<br />
launched from a remote shell) won&#8217;t think you&#8217;re done.  You should reopen those to /dev/null if it&#8217;s any issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anysql</title>
		<link>http://www.anysql.net/developer/perl_fork_process.html/comment-page-1#comment-732</link>
		<dc:creator>anysql</dc:creator>
		<pubDate>Fri, 23 Mar 2007 04:34:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.anysql.net/wordpress/uncategorized/%e5%9c%a8perl%e4%b8%ad%e5%a6%82%e4%bd%95%e6%b4%be%e7%94%9f%e5%a4%9a%e8%bf%9b%e7%a8%8b-fork%e5%87%bd%e6%95%b0.html#comment-732</guid>
		<description>我只是用Perl来编写一些数据库有关的工具, 在入门阶段, 谢谢大家的指点了.
</description>
		<content:encoded><![CDATA[<p>我只是用Perl来编写一些数据库有关的工具, 在入门阶段, 谢谢大家的指点了.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joe jiang</title>
		<link>http://www.anysql.net/developer/perl_fork_process.html/comment-page-1#comment-731</link>
		<dc:creator>joe jiang</dc:creator>
		<pubDate>Fri, 23 Mar 2007 01:38:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.anysql.net/wordpress/uncategorized/%e5%9c%a8perl%e4%b8%ad%e5%a6%82%e4%bd%95%e6%b4%be%e7%94%9f%e5%a4%9a%e8%bf%9b%e7%a8%8b-fork%e5%87%bd%e6%95%b0.html#comment-731</guid>
		<description>use POE
nearly multi-thread in one process, thus you can work on many topics, also check POE::Component::LaDBI or other modules on cpan
</description>
		<content:encoded><![CDATA[<p>use POE<br />
nearly multi-thread in one process, thus you can work on many topics, also check POE::Component::LaDBI or other modules on cpan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anysql</title>
		<link>http://www.anysql.net/developer/perl_fork_process.html/comment-page-1#comment-730</link>
		<dc:creator>anysql</dc:creator>
		<pubDate>Thu, 22 Mar 2007 20:47:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.anysql.net/wordpress/uncategorized/%e5%9c%a8perl%e4%b8%ad%e5%a6%82%e4%bd%95%e6%b4%be%e7%94%9f%e5%a4%9a%e8%bf%9b%e7%a8%8b-fork%e5%87%bd%e6%95%b0.html#comment-730</guid>
		<description>以前用c的fork时, 可以用指针来做, 这个怎么来做呢? 用文件或pipe我嫌太麻烦了.
指点一下?
</description>
		<content:encoded><![CDATA[<p>以前用c的fork时, 可以用指针来做, 这个怎么来做呢? 用文件或pipe我嫌太麻烦了.<br />
指点一下?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: piner</title>
		<link>http://www.anysql.net/developer/perl_fork_process.html/comment-page-1#comment-729</link>
		<dc:creator>piner</dc:creator>
		<pubDate>Thu, 22 Mar 2007 19:54:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.anysql.net/wordpress/uncategorized/%e5%9c%a8perl%e4%b8%ad%e5%a6%82%e4%bd%95%e6%b4%be%e7%94%9f%e5%a4%9a%e8%bf%9b%e7%a8%8b-fork%e5%87%bd%e6%95%b0.html#comment-729</guid>
		<description>我还写过进程间通信呢
</description>
		<content:encoded><![CDATA[<p>我还写过进程间通信呢</p>
]]></content:encoded>
	</item>
</channel>
</rss>
